From eaa7b91f1d7719e53e3e83194f887e63eb8b5544 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Thu, 13 Mar 2025 23:47:11 +0100 Subject: [PATCH] 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. --- .github/workflows/issues-auto-manager.yml | 5 +++++ .github/workflows/pr-auto-manager.yml | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issues-auto-manager.yml b/.github/workflows/issues-auto-manager.yml index e35f71b66..a6f89e25a 100644 --- a/.github/workflows/issues-auto-manager.yml +++ b/.github/workflows/issues-auto-manager.yml @@ -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' diff --git a/.github/workflows/pr-auto-manager.yml b/.github/workflows/pr-auto-manager.yml index 46ea54e90..9aefdbcf3 100644 --- a/.github/workflows/pr-auto-manager.yml +++ b/.github/workflows/pr-auto-manager.yml @@ -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: