update github action #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |
| - 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 |