mirror of
https://github.com/LITW-Refined/GTNH-Actions-Workflows.git
synced 2025-12-25 11:28:30 +00:00
Adapt workflows for running from this repo
This commit is contained in:
12
scripts/update_version
Executable file
12
scripts/update_version
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! git diff --name-only HEAD HEAD~1 | grep -qF 'build.gradle'; then
|
||||
new_version="$(date +%s)"
|
||||
sed --in-place "s!^//version:.*!//version: $new_version!g" build.gradle
|
||||
git add build.gradle
|
||||
git commit -m "[ci skip] update build script version to $new_version"
|
||||
git push
|
||||
printf 'Updated buildscript version to %s\n' "$new_version"
|
||||
else
|
||||
printf 'Ignored buildscript version update: no changes detected\n'
|
||||
fi
|
||||
Reference in New Issue
Block a user