fix(ci): pass PROJECTS_TOKEN to fix automated commits + remove duplicate checkout

Fixes PROJECTS_TOKEN passthrough for git-auto-commit-action and removes duplicate checkout step in pr-issue-auto-close workflow.
This commit is contained in:
Alireza Rezvani
2026-02-23 12:03:41 +01:00
committed by GitHub
parent 290060bee7
commit 9ab1dad6bb
2 changed files with 3 additions and 3 deletions

View File

@@ -29,8 +29,6 @@ jobs:
exit 0
fi
fi
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract linked issues from PR body
id: extract_issues

View File

@@ -28,7 +28,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PROJECTS_TOKEN }}
>>>>>>> b6f463f (fix(ci): pass PROJECTS_TOKEN to fix automated git push and dedup checkout step)
- name: Set up Python
uses: actions/setup-python@v5
@@ -62,6 +63,7 @@ jobs:
file_pattern: ".codex/*"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
token: ${{ secrets.PROJECTS_TOKEN }}
- name: Warn if main has drift
if: steps.check_changes.outputs.has_changes == 'true' && github.ref == 'refs/heads/main'