[Actions] Updated .github/workflows/update-labels.yml #42
This file contains 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 | |
jobs: | |
update-labels-config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Initialise Workspace" | |
if: startsWith(runner.name, 'buildagent-') | |
shell: bash | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | |
- name: "Checkout Source" | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
token: ${{secrets.SOURCE_PUSH_TOKEN}} | |
- name: "Update Github label config" | |
if: success() | |
uses: crazy-max/[email protected] | |
with: | |
github-token: ${{secrets.SOURCE_PUSH_TOKEN}} | |
yaml-file: .github/labels.yml | |
skip-delete: true | |
dry-run: false | |
exclude: | | |
help* | |
*issue |