From 24722c7eb811106117a2c7b551834bae67bc5e85 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:03:26 +0100 Subject: [PATCH] Update generate-app-headers.yaml --- .github/workflows/generate-app-headers.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-app-headers.yaml b/.github/workflows/generate-app-headers.yaml index 22282eed8..8958f9178 100644 --- a/.github/workflows/generate-app-headers.yaml +++ b/.github/workflows/generate-app-headers.yaml @@ -19,7 +19,7 @@ jobs: with: fetch-depth: 0 # Ensure we have full access to all branches - # Step 2: Check if update-app-headers branch exists, create if not + # Step 2: Check or Create update-app-headers branch - name: Check or Create update-app-headers branch run: | git fetch origin @@ -31,7 +31,7 @@ jobs: git checkout update-app-headers fi - # Step 3: Ensure .app-headers file exists (if missing, create it) + # Step 3: Ensure .app-headers file exists - name: Ensure .app-headers file exists run: | if [ ! -f ".app-headers" ]; then @@ -41,7 +41,7 @@ jobs: echo ".app-headers already exists." fi - # Step 4: Compare .app-headers with main, commit if changes + # Step 4: Compare with main and commit changes - name: Compare with main and commit changes run: | git fetch origin @@ -56,6 +56,8 @@ jobs: # Step 5: Create Pull Request if changes detected - name: Create Pull Request if changes detected + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | PR_EXISTS=$(gh pr list --head "update-app-headers" --json number --jq '.[].number') if [ -z "$PR_EXISTS" ]; then @@ -72,4 +74,3 @@ jobs: - name: Output final status run: | echo "Workflow completed successfully. Branch and PR status updated." -