Skip to content

Commit 54f88cd

Browse files
update github action
1 parent 1ca9e3d commit 54f88cd

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/upgrade.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,26 @@ jobs:
2525

2626
- name: Run Capacitor Plugin Migration
2727
working-directory: plugin
28-
run: npx @capacitor/plugin-migration-v6-to-v7@latest
28+
run: npx @capacitor/plugin-migration-v6-to-v7@latest
29+
30+
- name: Configure Git
31+
run: |
32+
git config user.name "Github Workflow (on behalf of ${{ github.actor }})"
33+
git config user.email "users.noreply.github.com"
34+
git remote set-url origin https://x-access-token:${CAP_GH_RELEASE_TOKEN}@github.com/${{ github.repository }}.git
35+
env:
36+
CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
37+
38+
- name: Create branch for migration
39+
run: git checkout -b plugin-migration-v7
40+
41+
- name: Commit plugin changes
42+
run: |
43+
git add .
44+
git commit -m "Migrate plugin to Capacitor v7"
45+
46+
- name: Push to branch
47+
run: |
48+
git push origin plugin-migration-v7
49+
env:
50+
CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)