File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,27 @@ jobs:
3131 run : |
3232 git config user.name "Github Workflow (on behalf of ${{ github.actor }})"
3333 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 }}
3437
3538 - name : Create branch for migration
36- run : git checkout -b plugin-migration-v7
39+ run : |
40+ # Deleta branch local se existir
41+ git branch -D plugin-migration-v7 || true
42+ # Deleta branch remoto se existir
43+ git push origin --delete plugin-migration-v7 || true
44+ # Cria branch novo
45+ git checkout -b plugin-migration-v7
46+ env :
47+ CAP_GH_RELEASE_TOKEN : ${{ secrets.CAP_GH_RELEASE_TOKEN }}
3748
3849 - name : Commit plugin changes
3950 run : |
4051 git add .
41- git commit -m "Migrate plugin to Capacitor v7"
52+ git diff --cached --quiet || git commit -m "Migrate plugin to Capacitor v7"
4253
4354 - name : Push to branch
44- run : |
45- git push origin plugin-migration-v7
55+ run : git push origin plugin-migration-v7
56+ env :
57+ CAP_GH_RELEASE_TOKEN : ${{ secrets.CAP_GH_RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments