Skip to content

Commit 925afd1

Browse files
authored
Merge pull request #88 from vue-pivottable/feat/ci
fix: update workflows
2 parents ae54e14 + 5ee3741 commit 925afd1

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

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

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,24 @@ on:
88
jobs:
99
sync-release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113

1214
steps:
1315
- name: Checkout
1416
uses: actions/checkout@v3
1517
with:
1618
fetch-depth: 0
19+
token: ${{ secrets.GITHUB_TOKEN }}
1720

18-
- name: Generate GitHub App Token
19-
id: generate-token
20-
uses: tibdex/github-app-token@v1
21-
with:
22-
app_id: ${{ secrets.APP_ID }}
23-
private_key: ${{ secrets.APP_PRIVATE_KEY }}
24-
installation_id: ${{ secrets.APP_INSTALLATION_ID }}
25-
26-
- name: Sync release branch with main
27-
env:
28-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
21+
- name: Update or create release branch
2922
run: |
30-
git config --global user.name "GitHub App"
31-
git config --global user.email "[email protected]"
32-
33-
git fetch origin
34-
3523
if git ls-remote --exit-code --heads origin release; then
3624
git fetch origin release
3725
git checkout -b release origin/release
3826
git merge --no-edit origin/main
3927
else
40-
git checkout -b release origin/main
28+
git checkout -b release
4129
fi
4230
43-
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/vue-pivottable/vue3-pivottable.git" release
31+
git push origin release

0 commit comments

Comments
 (0)