MAINT: Bump the actions group in /requirements with 2 updates #683
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: Labeler | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '../labels.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| label-syncer: | |
| name: Syncer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: micnncim/action-label-syncer@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| labeler: | |
| name: Set labels | |
| needs: [label-syncer] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Label based on modified files | |
| - name: Label based on changed files | |
| uses: actions/labeler@v6 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Label based on branch name | |
| - uses: actions-ecosystem/action-add-labels@v1 | |
| if: | | |
| startsWith(github.event.pull_request.head.ref, 'doc') || | |
| startsWith(github.event.pull_request.head.ref, 'docs') | |
| with: | |
| labels: documentation | |
| - uses: actions-ecosystem/action-add-labels@v1 | |
| if: | | |
| startsWith(github.event.pull_request.head.ref, 'maint') || | |
| startsWith(github.event.pull_request.head.ref, 'no-ci') || | |
| startsWith(github.event.pull_request.head.ref, 'ci') | |
| with: | |
| labels: maintenance | |
| - uses: actions-ecosystem/action-add-labels@v1 | |
| if: startsWith(github.event.pull_request.head.ref, 'feat') | |
| with: | |
| labels: | | |
| enhancement | |
| - uses: actions-ecosystem/action-add-labels@v1 | |
| if: | | |
| startsWith(github.event.pull_request.head.ref, 'fix') || | |
| startsWith(github.event.pull_request.head.ref, 'patch') | |
| with: | |
| labels: bug | |
| commenter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Suggest to add labels | |
| uses: peter-evans/create-or-update-comment@v5 | |
| # Execute only when no labels have been applied to the pull request | |
| if: toJSON(github.event.pull_request.labels.*.name) == '{}' | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| Please add one of the following labels to add this contribution to the Release Notes :point_down: | |
| - [bug](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Abug+) | |
| - [documentation](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Adocumentation+) | |
| - [enhancement](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Aenhancement+) | |
| - [good first issue](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Agood+first+issue) | |
| - [maintenance](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Amaintenance+) | |
| - [release](https://github.com/ansys/pymapdl-examples/pulls?q=label%3Arelease+) |