mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2025-08-31 23:35:45 -06:00
40 lines
862 B
YAML
40 lines
862 B
YAML
name: labels
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- '.github/labels.yml'
|
|
- '.github/workflows/labels.yml'
|
|
pull_request:
|
|
paths:
|
|
- '.github/labels.yml'
|
|
- '.github/workflows/labels.yml'
|
|
|
|
jobs:
|
|
labeler:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
# same as global permissions
|
|
contents: read
|
|
# required to update labels
|
|
issues: write
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Run Labeler
|
|
uses: crazy-max/ghaction-github-labeler@v5
|
|
with:
|
|
dry-run: ${{ github.event_name == 'pull_request' }}
|