Bump Release Please Version | Pipeline #3
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 Please Version | Pipeline' | |
on: | |
workflow_dispatch: | |
inputs: | |
release-tag: | |
description: 'The release tag to bump the releases to' | |
required: false | |
default: '1.0.0' | |
type: string | |
modpack: | |
description: 'Path to the modpack directory' | |
required: false | |
default: 'main' | |
type: string | |
workflow_call: | |
inputs: | |
release-tag: | |
description: 'The release tag to bump the releases to' | |
required: false | |
default: '1.0.0' | |
type: string | |
jobs: | |
set-version: | |
runs-on: ubuntu-latest | |
name: Update Version | |
permissions: | |
contents: write | |
steps: | |
# --- Checkout the repo | |
- name: Check Out Git Repository | |
uses: actions/checkout@v4 | |
# --- Get current branch | |
- name: Get current branch | |
id: branch | |
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
# --- Set the new version | |
# TODO: Change to an pr | |
- name: Set the New Version | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_options: '--allow-empty' | |
skip_dirty_check: true | |
commit_message: | | |
chore(${{ steps.branch.outputs.branch }}): release ${{ inputs.release-tag }} | |
Release-As: ${{ inputs.release-tag }}} |