Workflows use checkout step for label apply

- Checkout might be needed/useful, otherwise config files are not present
- Do not remove labels from PR updates anymore. Has to be done manually. Otherwise manual labelling really isn't possible.
This commit is contained in:
Wolfsblvt
2025-03-13 23:47:11 +01:00
parent ea989df6a1
commit eaa7b91f1d
2 changed files with 15 additions and 2 deletions

View File

@ -13,6 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
# Checkout
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v4
- name: Auto-Label Issues (Based on Issue Content)
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
if: github.event.action == 'opened'

View File

@ -40,13 +40,17 @@ jobs:
if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
steps:
- name: Checkout Repository
# Checkout
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v4
- name: Apply Labels Based on Branch Name and Target Branch
# Pull Request Labeler
# https://github.com/marketplace/actions/labeler
uses: actions/labeler@v5
with:
configuration-path: .github/pr-auto-labels-by-branch.yml
sync-labels: true # Remove labels when they are not relevant anymore
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
label-by-files:
@ -54,13 +58,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
# Checkout
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v4
- name: Apply Labels Based on Changed Files
# Pull Request Labeler
# https://github.com/marketplace/actions/labeler
uses: actions/labeler@v5
with:
configuration-path: .github/pr-auto-labels-by-files.yml
sync-labels: true # Remove labels when they are not relevant anymore
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
remove-stale-label: