clean variables, split workflow in to actions
Some checks failed
Generate Skin previews, OSK files and per skin documentation / Full CI/CD Pipeline (push) Failing after 10s

This commit is contained in:
2025-09-30 22:22:25 +02:00
parent 8eb041dfd0
commit b8094c3cd4
10 changed files with 988 additions and 932 deletions

View File

@@ -0,0 +1,40 @@
name: "Commit and Push Changes"
description: "Configure Git, commit changes, push to branch, and tag release"
inputs:
new_tag:
description: "The tag to create and push"
required: true
runs:
using: "composite"
steps:
- name: Configure Git
shell: bash
run: |
git config user.email "arlind@sulej.ch"
git config user.name "ci-bot"
- name: Add and Commit changes
shell: bash
run: |
git config advice.addIgnoredFile false
for p in docs/ media/gameplay media/thumbnail media/panel media/icons export README.md how-to-use.md src; do
if [ -e "$p" ]; then
git add -A "$p"
fi
done
git commit -m "[ci skip] push back from pipeline" -q || echo "No changes to commit"
- name: Push changes and create tag
shell: bash
run: |
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
git push origin HEAD:main || echo "No changes to push"
git tag "${{ inputs.new_tag }}"
git push origin "${{ inputs.new_tag }}"
else
git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push"
fi