[PR] Updated labels #67
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: "Repo: Update Labels" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/labels.yml' | |
| - '.github/workflows/update-labels.yml' | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| update-labels-config: | |
| runs-on: [self-hosted, linux, build] | |
| permissions: | |
| issues: write # for crazy-max/ghaction-github-labeler to create, rename, update | |
| steps: | |
| - name: "Initialise Workspace" | |
| if: startsWith(runner.name, 'buildagent-') | |
| shell: bash | |
| run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | |
| - name: "Set Active Environment" | |
| shell: bash | |
| run: | | |
| { | |
| echo "ACTIVE_RUNNER_NAME=${{runner.name}}" | |
| echo "ACTIVE_HOSTNAME=$HOSTNAME" | |
| echo "ACTIVE_USER=$USER" | |
| } >> "$GITHUB_ENV" | |
| - name: "Checkout Source" | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| clean: true | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| token: ${{secrets.SOURCE_PUSH_TOKEN}} | |
| - name: "Update Github label config" | |
| if: success() | |
| uses: crazy-max/ghaction-github-labeler@v5.3.0 | |
| with: | |
| github-token: ${{secrets.SOURCE_PUSH_TOKEN}} | |
| yaml-file: .github/labels.yml | |
| skip-delete: false | |
| dry-run: false | |
| exclude: | | |
| help* | |
| *issue |