Skip to content

docs: 📝 description of split between core, cli, and app #3

docs: 📝 description of split between core, cli, and app

docs: 📝 description of split between core, cli, and app #3

name: Delete GitHub environment after merging
on:
pull_request:
types: [closed]
branches:
- main
jobs:
delete-environment:
# TODO: Remove this `if` and fix the workflow once we start deploying to Fly again.
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# TODO: This wasn't working correctly.
# This removes left over environments in GitHub from the building and deploying.
- name: Clean up GitHub environment
run: |
gh api \
--method DELETE \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/seedcase-project/${{ github.event.repository.name }}/environments/pr-${{ github.event.number }}
env:
GH_TOKEN: ${{ secrets.DELETE_ENV_TOKEN }}