Skip to content

Commit

Permalink
Update update_ksu.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghazzor authored Jan 24, 2025
1 parent 2902340 commit 79a7884
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/update_ksu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git submodule update --init
pushd KernelSU-Next
LOCAL_LATEST=$(git describe --tags --abbrev=0)
git pull origin main
REMOTE_LATEST=$(git describe --tags --abbrev=0)
if [ $LOCAL_LATEST = $REMOTE_LATEST ]; then
echo "No changes: Local tag $LOCAL_LATEST is latest"
exit 0;
fi
git checkout $REMOTE_LATEST
popd
git submodule update --remote
git add KernelSU-Next
git commit -m "KSU-N: update tag $REMOTE_LATEST" -m
git commit -m "KSU-N: update tag"
git push

0 comments on commit 79a7884

Please sign in to comment.