Error "Task v3.24.0 is required[...]. The current version is v3.4.0." #1
This file contains hidden or 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: issue closed | |
| on: | |
| issues: | |
| types: [closed] | |
| jobs: | |
| issue-closed: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/github-script@v6 | |
| with: | |
| github-token: ${{secrets.GH_PAT}} | |
| script: | | |
| const labels = await github.paginate( | |
| github.rest.issues.listLabelsOnIssue, { | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| } | |
| ) | |
| if (labels.find(label => label.name === 'state: needs triage')) { | |
| github.rest.issues.removeLabel({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| name: 'state: needs triage' | |
| }) | |
| } |