Skip to content

Revalidate on demand #7766

Revalidate on demand

Revalidate on demand #7766

Workflow file for this run

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']
})