Skip to content

feat: add bar icon

feat: add bar icon #3

Workflow file for this run

name: Update Version on Tag
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
- name: Extract version from tag
id: version
env:
TAG_REF: ${{ github.ref }}
run: |
VERSION=${TAG_REF#refs/tags/v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Extracted version: $VERSION"
- name: Update Xcode project version
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
./scripts/update-version.sh "$VERSION"
- name: Commit version update
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add open-sidenotes.xcodeproj/project.pbxproj
if ! git diff --staged --quiet; then
git commit -m "chore: update version to $VERSION"
git push origin main
else
echo "No changes to commit"
fi