Update phonenumbers live support labels #81
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: Version Bump | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| jobs: | |
| bump: | |
| name: Patch Version Bump | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Check if version bump commit | |
| id: check | |
| run: | | |
| MSG="${{ github.event.head_commit.message }}" | |
| if echo "$MSG" | grep -q "chore: bump version"; then | |
| echo "skip=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "skip=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - uses: actions/checkout@v4 | |
| if: steps.check.outputs.skip != 'true' | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-node@v4 | |
| if: steps.check.outputs.skip != 'true' | |
| with: | |
| node-version: 24 | |
| - name: Bump patch version | |
| if: steps.check.outputs.skip != 'true' | |
| run: bash scripts/version.sh patch | |
| - name: Commit & push | |
| if: steps.check.outputs.skip != 'true' | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git add package.json mobile/package.json electron/package.json mobile/app.json | |
| git diff --cached --quiet && echo "No version change" && exit 0 | |
| git commit -m "chore: bump version to v${VERSION}" | |
| git push |