fix(#960): wrap app_goto_target coordinates in array (#962) #25
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: Auto Build | |
| on: | |
| push: | |
| branches: | |
| - '**' # Triggers on push to any branch | |
| paths-ignore: | |
| - 'build/**' # Ignore changes inside build folder to prevent loops | |
| - '.github/workflows/auto-build.yml' # Ignore changes to this workflow | |
| jobs: | |
| build-and-commit: | |
| # Stop if the commit message already contains [skip ci] | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Checkout the branch that triggered the workflow | |
| ref: ${{ github.ref }} | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Build Project | |
| run: npm run build | |
| - name: Stage Build Artifacts | |
| run: | | |
| # Force add build folder because it is in .gitignore | |
| git add -f build/ | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore(build): update build artifacts [skip ci]" | |
| title: "chore(build): update build artifacts" | |
| body: "Auto-generated PR to update build artifacts." | |
| branch: "auto-build/update-artifacts" | |
| delete-branch: true | |
| base: ${{ github.ref_name }} |