Files
AnarchyMod/.github/workflows/set-version.yml
T
AlexProgrammerDEandClaude Opus 4.6 0a3b019962 refactor: migrate to Stonecutter for multi-version management
Replace 20 separate mc-* submodules and common module with a single
Stonecutter-managed source tree using preprocessor comments. This
eliminates massive code duplication while preserving all version-specific
behavior across 1.19.4 through 1.21.11.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-01 10:06:02 +01:00

36 lines
757 B
YAML

name: set-version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to set'
required: true
workflow_call:
inputs:
version:
required: true
type: string
jobs:
set-version:
name: Set Version
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: Set Version
run: sed -i "s/mod_version=.*/mod_version=${{ inputs.version }}/" gradle.properties
- name: Commit Version
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'chore(release): bump version to ${{ inputs.version }}'