Skip to content

Update version number #46

Update version number

Update version number #46

Workflow file for this run

name: Update version number
on:
workflow_dispatch:
inputs:
newVersion:
description: 'The new version'
required: true
jobs:
Update:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Update version number
run: |
Scripts/increment_version.sh ${{ github.event.inputs.newVersion }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
delete-branch: true
branch: update-version-github-action
commit-message: "chore: updated version"
title: Update version
body: Update version.
token: ${{ secrets.GITHUB_TOKEN }}