Cleanup job ignores SonarQube scan resource groups #21
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: Prevent "New" Label on Issues | |
| permissions: {} | |
| on: | |
| issues: | |
| types: [labeled] | |
| jobs: | |
| remove_new_label: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Remove "New" label if applied by non-bot user | |
| if: > | |
| contains(github.event.issue.labels.*.name, 'New') && | |
| github.event.label.name == 'New' && | |
| github.event.sender.login != 'github-actions[bot]' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| run: | | |
| gh issue edit "$ISSUE_NUMBER" --remove-label "New" |