mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-09-07 22:02:22 +00:00
Add a workflow to synchronize repository labels
This adds a workflow to ensure that the repository labels are updated to reflect changes to the label configuration file .github/labels.yml.
This commit is contained in:
parent
e5fbd70b20
commit
b9792a8d18
1 changed files with 29 additions and 0 deletions
29
.github/workflows/sync-labels.yml
vendored
Normal file
29
.github/workflows/sync-labels.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
name: sync-labels
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/labels.yml'
|
||||||
|
- '.github/workflows/sync-labels.yml'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
labeler:
|
||||||
|
permissions:
|
||||||
|
# actions/checkout needs this to fetch code
|
||||||
|
contents: read
|
||||||
|
# crazy-max/ghaction-github-labeler needs this to manage repository labels
|
||||||
|
issues: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Sync repository labels
|
||||||
|
if: success()
|
||||||
|
uses: crazy-max/ghaction-github-labeler@v4
|
||||||
|
with:
|
||||||
|
# This is a hideous ternary equivalent so we only do a dry run unless
|
||||||
|
# this workflow is triggered by the develop branch.
|
||||||
|
dry-run: ${{ github.ref_name == 'develop' && 'false' || 'true' }}
|
Loading…
Reference in a new issue