Instead of deleting e2e repo when tests succeed, delete them when PR closes #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete end-to-end test repos on PR close | |
on: | |
pull_request_target: | |
types: | |
- closed | |
jobs: | |
test: | |
name: Publish coverage comment | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
gh repo delete --yes https://github.com/mihcaojwe/python-coverage-comment-action-end-to-end-${NUMBER}-public || true | |
env: | |
GITHUB_TOKEN: ${{ secrets.COVERAGE_COMMENT_E2E_GITHUB_TOKEN_USER_1 }} | |
- run: | | |
gh repo delete --yes https://github.com/mihcaojwe/python-coverage-comment-action-end-to-end-${NUMBER}-private || true | |
env: | |
GITHUB_TOKEN: ${{ secrets.COVERAGE_COMMENT_E2E_GITHUB_TOKEN_USER_2 }} |