Merge pull request #263 from skyflowapi/release/24.1.2 #10
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: Bump Release Version | |
on: | |
push: | |
tags-ignore: | |
- '*' | |
paths-ignore: | |
- 'Skyflow.podspec' | |
- '*.md' | |
- 'Sources/Skyflow/Version.swift' | |
branches: | |
- public-release/* | |
jobs: | |
bump_version_spec: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT_ACTIONS }} | |
- name: Fetch branch name | |
id: branch | |
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" | |
- name: Extract version number | |
id: version | |
run: | | |
version=${{ steps.branch.outputs.branch }} | |
version=${version#public-release/} | |
echo "::set-output name=version::$version" | |
- name: Bump Version | |
run: | | |
chmod +x ./scripts/bump_version.sh | |
./scripts/bump_version.sh ${{ steps.version.outputs.version }} | |
- name: Commit changes | |
run: | | |
git config user.name ${{ github.actor }} | |
git config user.email ${{ github.actor }}@users.noreply.github.com | |
git add Skyflow.podspec | |
git add Sources/Skyflow/Version.swift | |
git commit -m "[AUTOMATED] Public Release ${{ steps.version.outputs.version }}" | |
git push origin |