Skip to content

Commit 7e44197

Browse files
authored
Merge pull request #90 from vue-pivottable/feat/ci
ci: update workflows token
2 parents 4e95e27 + 44b610f commit 7e44197

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/sync-vue-pivottable.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,19 @@ jobs:
1818
fetch-depth: 0
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020

21+
- name: Generate GitHub App Token
22+
id: generate-token
23+
uses: tibdex/github-app-token@v1
24+
with:
25+
app_id: ${{ secrets.APP_ID }}
26+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
27+
installation_id: ${{ secrets.APP_INSTALLATION_ID }}
28+
2129
- name: Update or create release branch
2230
run: |
31+
git config --global user.name "GitHub Actions"
32+
git config --global user.email "[email protected]"
33+
2334
if git ls-remote --exit-code --heads origin release; then
2435
git fetch origin release
2536
git checkout -b release origin/release
@@ -28,4 +39,5 @@ jobs:
2839
git checkout -b release
2940
fi
3041
42+
git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/${{ github.repository }}
3143
git push origin release

0 commit comments

Comments
 (0)