Files
ResInsight/.github/workflows/close-label.yml
Magne Sjaastad 10ecec9fb2 Use ubuntu-26.04 runners in all GitHub workflows
Install clang-19 from the Ubuntu archive, as apt.llvm.org has no LLVM 19 repository for 26.04.
2026-09-28 09:22:46 +02:00

23 lines
600 B
YAML

name: Set label 'PendingRelease' on closed issues
on:
issues:
types:
- closed
jobs:
label_issues:
# Skip issues closed as "not planned" or "duplicate"
if: github.event.issue.state_reason == 'completed'
runs-on: ubuntu-26.04
permissions:
issues: write
steps:
- uses: actions/github-script@v9
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["PendingRelease"]
})