mirror of
https://github.com/darksaid98/optim.git
synced 2026-12-01 14:38:49 +00:00
refactor: add mc-modpack-kit template
This commit is contained in:
108 files changed
+773
No files matched your search
@@ -0,0 +1,52 @@
|
||||
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@v4
|
||||
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 }}}
|
||||
Reference in new issue
Block a user