Files
optim/.github/workflows/bump-version.yml
T
dependabot[bot] fef44e0018 build(deps): bump stefanzweifel/git-auto-commit-action from 4 to 5
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-01-03 18:31:44 +00:00

53 lines
1.3 KiB
YAML

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 }}}