mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
Use PAT to trigger CI workflows in VRT update workflow (#6363)
This commit is contained in:
committed by
GitHub
parent
9c9a98844f
commit
b99d3ab802
8
.github/workflows/vrt-update-apply.yml
vendored
8
.github/workflows/vrt-update-apply.yml
vendored
@@ -59,6 +59,7 @@ jobs:
|
|||||||
repository: ${{ steps.metadata.outputs.head_repo }}
|
repository: ${{ steps.metadata.outputs.head_repo }}
|
||||||
ref: ${{ steps.metadata.outputs.head_ref }}
|
ref: ${{ steps.metadata.outputs.head_ref }}
|
||||||
token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
|
token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
|
||||||
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Validate and apply patch
|
- name: Validate and apply patch
|
||||||
@@ -123,9 +124,10 @@ jobs:
|
|||||||
HEAD_REPO: ${{ steps.metadata.outputs.head_repo }}
|
HEAD_REPO: ${{ steps.metadata.outputs.head_repo }}
|
||||||
GITHUB_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Configure git to use the token via credential helper (avoids token in URLs/logs)
|
# Use PAT in URL to ensure push triggers CI workflows
|
||||||
git config --local credential.helper '!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f'
|
# Note: GitHub Actions automatically masks secrets in logs
|
||||||
git remote set-url origin "https://github.com/${HEAD_REPO}.git"
|
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${HEAD_REPO}.git"
|
||||||
|
|
||||||
git push origin "HEAD:refs/heads/$HEAD_REF"
|
git push origin "HEAD:refs/heads/$HEAD_REF"
|
||||||
echo "Successfully pushed VRT updates to $HEAD_REPO@$HEAD_REF"
|
echo "Successfully pushed VRT updates to $HEAD_REPO@$HEAD_REF"
|
||||||
|
|
||||||
|
|||||||
6
upcoming-release-notes/6363.md
Normal file
6
upcoming-release-notes/6363.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Maintenance
|
||||||
|
authors: [MatissJanis]
|
||||||
|
---
|
||||||
|
|
||||||
|
Another approach at triggering ci jobs after update-vrt workflow
|
||||||
Reference in New Issue
Block a user