Revalidate on demand #7766
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: Close Pull Request | |
on: | |
pull_request_target: | |
types: [closed] | |
jobs: | |
close_job: | |
# this job will only run if the PR has been closed without being merged | |
if: github.event.pull_request.merged == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v4 | |
with: | |
script: | | |
github.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['abandoned'] | |
}) |