-
Notifications
You must be signed in to change notification settings - Fork 41
50 lines (39 loc) · 1.33 KB
/
upgrade.yml
File metadata and controls
50 lines (39 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Plugin Upgrade
# Trigger manual
on:
push:
branches:
- test/action-plugin-upgrade
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
# - name: Setup Tools
# uses: ./.github/actions/setup-tools
- name: List installed Java versions
run: /usr/libexec/java_home -V
- name: Verify Java version
run: java -version
- name: Run Capacitor Plugin Migration
working-directory: plugin
run: npx @capacitor/plugin-migration-v6-to-v7@latest
- name: Configure Git
run: |
git config user.name "Github Workflow (on behalf of ${{ github.actor }})"
git config user.email "users.noreply.github.com"
git remote set-url origin https://x-access-token:${CAP_GH_RELEASE_TOKEN}@github.com/${{ github.repository }}.git
env:
CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- name: Create branch for migration
run: git checkout -b plugin-migration-v7
- name: Commit plugin changes
run: |
git add .
git commit -m "Migrate plugin to Capacitor v7"
- name: Push to branch
run: |
git push origin plugin-migration-v7
env:
CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}