feat: add GH_PAT token and fetch-depth to GitHub Actions workflows
- Add fetch-depth: 1 to all checkout actions for faster checkout
- Add token: ${{ secrets.GH_PAT }} to all checkout actions
- This enables access to private submodules and improves checkout performance
This commit is contained in:
5
.github/workflows/release-manual.yml
vendored
5
.github/workflows/release-manual.yml
vendored
@@ -19,6 +19,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
@@ -73,6 +76,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
ref: 'main'
|
||||
|
||||
- name: Download all artifacts
|
||||
|
||||
Reference in New Issue
Block a user