Skip to content

Merge pull request #1160 from felddy/port/pre-release #240

Merge pull request #1160 from felddy/port/pre-release

Merge pull request #1160 from felddy/port/pre-release #240

Workflow file for this run

---
name: sync-labels
on:
push:
paths:
- .github/labels.yml
- .github/workflows/sync-labels.yml
workflow_dispatch:
permissions:
contents: read
jobs:
diagnostics:
name: Run Diagnostics
uses: felddy/reusable-workflows/.github/workflows/diagnostics.yml@v2
labeler:
needs:
- diagnostics
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:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # tag=v2.10.4
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Sync repository labels
if: success()
uses: crazy-max/ghaction-github-labeler@31674a3852a9074f2086abcf1c53839d466a47e7 # tag=v5.2.0
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' }}