feature: Sparkle (#61) #8
Workflow file for this run
This file contains 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: 'Create New Version' | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
update_version: | |
name: Update Application Version | |
runs-on: [macos-14] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set Version | |
run: | | |
xcrun agvtool new-version -all ${{ github.ref_name }} | |
xcrun agvtool new-marketing-version ${{ github.ref_name }} | |
echo "APP_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
env: | |
APP_VERSION: ${{ env.APP_VERSION }} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: | | |
release: ${{ env.APP_VERSION }} | |
body: | | |
This is automatic action triggered by newly pushed version tag. | |
commit-message: | | |
Update Application Version to ${{ env.APP_VERSION }} | |
base: master | |
branch: release/${{ env.APP_VERSION }} | |
labels: release | |
author: GitHub Action <[email protected]> | |
reviewers: onl1ner | |
delete-branch: true |