Skip to content

Commit

Permalink
ci: specify suffix for release bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Apr 11, 2024
1 parent 2994c2d commit ed0ad11
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Automatically run the version bump script.
# We do this only on main/beta branches, and also allow manual triggers on specific branches via workflow dispatch.
name: Version Bump

# prevent concurrent version bumps
concurrency:
group: "version-bump-${{ github.ref_name }}"

on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
suffix:
description: 'Suffix to append to the version (alpha/beta), leave empty for no suffix.'
required: false
default: 'alpha'

env:
RELEASE_PLZ_BIN_URL: https://github.com/MarcoIeni/release-plz/releases/download/release-plz-v0.3.43/release-plz-x86_64-unknown-linux-gnu.tar.gz
Expand Down Expand Up @@ -58,8 +62,8 @@ jobs:
rm release-plz-x86_64-unknown-linux-gnu.tar.gz
sudo mv release-plz /usr/local/bin
- shell: bash
# run as the branch name
run: ./resources/scripts/bump_version.sh ${{ github.ref_name }}
# run as the branch name with the suffix from workflow dispatch, allowing for an empty suffix as a valid option
run: ./resources/scripts/bump_version.sh ${{ github.event.inputs.suffix }}
- name: push version bump commit
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit ed0ad11

Please sign in to comment.