You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
4.0 release
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -114,7 +114,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set release variables
|
||||
id: set_release_variables
|
||||
@@ -141,6 +141,20 @@ jobs:
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
|
||||
|
||||
- name: Update update.json
|
||||
run: |
|
||||
COMMIT_NUM=$(git rev-list --count HEAD)
|
||||
sed -i "s/\"versionCode\":.*/\"versionCode\": ${COMMIT_NUM},/" update.json
|
||||
sed -i "s/^versionCode=.*/versionCode=${COMMIT_NUM}/" module/module.prop
|
||||
|
||||
git config --global user.email "leecc0503@gmail.com"
|
||||
git config --global user.name "KOWX712"
|
||||
git remote set-url origin "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git"
|
||||
|
||||
git add update.json module/module.prop
|
||||
git commit --amend --no-edit
|
||||
git push --force
|
||||
|
||||
- name: Compress module folder
|
||||
run: |
|
||||
cd module && zip -r "../${{ env.ZIP_NAME }}" ./*
|
||||
|
||||
Reference in New Issue
Block a user