[workflow] only run "Upload artifacts of failed tests" step if files … #1192
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: Mark issue as planned | |
on: | |
issues: | |
types: [ milestoned ] | |
jobs: | |
apply-label: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: sleep 20s | |
run: sleep 20 | |
- uses: actions/github-script@v7 | |
name: Add label 'status planned' to issue when milestoned | |
with: | |
github-token: ${{github.token}} | |
script: | | |
github.rest.issues.addLabels({ | |
...context.repo, | |
issue_number: context.issue.number, | |
labels: ['status: planned'] | |
}) | |
.catch(e => { console.log(e.message) }) | |
- uses: actions/github-script@v7 | |
name: Remove label 'status new' to issue when milestoned | |
with: | |
github-token: ${{github.token}} | |
script: | | |
github.rest.issues.removeLabel({ | |
...context.repo, | |
issue_number: context.issue.number, | |
name: 'status: new' | |
}) | |
.catch(e => { console.log(e.message) }) |