Bump pytest from 9.0.2 to 9.0.3 in the python group across 1 directory #71
Workflow file for this run
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: CI - Update [bot] PR | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| branches: | |
| - 'master' | |
| jobs: | |
| add_skip_changelog_label: | |
| name: Add 'skip_changelog' label | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.type == 'Bot' | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Add 'skip_changelog' label | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const labels = await github.rest.issues.listLabelsOnIssue({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number | |
| }) | |
| for (const label of labels.data) { | |
| if (label.name === 'skip_changelog') { | |
| console.log("Label 'skip_changelog' already exists 👌") | |
| return // Skip adding the label if it already exists | |
| } | |
| } | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| labels: ['skip_changelog'] | |
| }) | |
| console.log("Label 'skip_changelog' added 🎉") |