mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-18 19:39:35 +00:00
run buildscript-maintenance.yml on all branch pushes
This commit is contained in:
1 parent
c926328a0e
commit
9e47698f90
2 files changed
+3
-7
No files matched your search
@@ -1,5 +1,5 @@
|
||||
echo "Currently only ${GITHUB_REF_NAME}"
|
||||
git checkout $GITHUB_REF_NAME
|
||||
echo "Currently on ${GITHUB_REF##*/}"
|
||||
git checkout ${GITHUB_REF##*/}
|
||||
if [ ! -z $(git diff --name-only HEAD HEAD~1 | grep build.gradle) ]; then
|
||||
new_version="$(git log -n1 --format=format:"%H")"
|
||||
sed --in-place "s!//version:.*!//version: $new_version!g" build.gradle
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
|
||||
name: Buildscript maintenance
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
buildscript-maintenance:
|
||||
|
||||
Reference in new issue
Block a user