name: Cleanup Flex testing endpoint on: pull_request_target: types: [ closed ] defaults: run: shell: bash jobs: cleanup: name: Cleanup Flex testing endpoint runs-on: Ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v2 - name: Cleanup Flex testing endpoint run: | git push origin :flex/pull-${{ github.event.number }} || true