mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-02 15:44:31 +02:00
workflow: fix previous_tag
This commit is contained in:
parent
fd008c7762
commit
0c79ea90af
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -14,14 +14,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get previous tag
|
- id: prev_tag
|
||||||
id: previous_tag
|
run: |
|
||||||
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
TAG=$(git tag --sort=creatordate | tail -1)
|
||||||
with:
|
if [ -z "$TAG" ]; then TAG=1; fi
|
||||||
fallback: 1
|
echo ::set-output name=tag::$TAG
|
||||||
|
|
||||||
- id: next_ver_code
|
- id: next_ver_code
|
||||||
run: export TAG=${{ steps.previous_tag.outputs.tag }}; echo ::set-output name=NEXT_VER_CODE::$((TAG + 1))
|
run: export TAG=${{ steps.prev_tag.outputs.tag }}; echo ::set-output name=NEXT_VER_CODE::$((TAG + 1))
|
||||||
|
|
||||||
- run: ./build.sh all
|
- run: ./build.sh all
|
||||||
env:
|
env:
|
||||||
@ -50,9 +50,9 @@ jobs:
|
|||||||
release_name: ${{ steps.get_output.outputs.YT_OUTPUT }}
|
release_name: ${{ steps.get_output.outputs.YT_OUTPUT }}
|
||||||
tag: ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}
|
tag: ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}
|
||||||
file_glob: true
|
file_glob: true
|
||||||
overwrite: true
|
overwrite: false
|
||||||
|
|
||||||
- name: Update changelog and magisk udate configs
|
- name: Update changelog and magisk update jsons
|
||||||
id: update_config
|
id: update_config
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.get_output.outputs.BUILD_LOG }}" >latest_build.log
|
echo "${{ steps.get_output.outputs.BUILD_LOG }}" >latest_build.log
|
||||||
@ -79,7 +79,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: update
|
branch: update
|
||||||
create_branch: true
|
create_branch: true
|
||||||
skip_checkout: true
|
|
||||||
file_pattern: latest_build.log music-update.json yt-update.json
|
file_pattern: latest_build.log music-update.json yt-update.json
|
||||||
commit_message: Bump ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}
|
commit_message: Bump ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}
|
||||||
push_options: "--force" # this seemed easy, will checkout properly later
|
push_options: "--force" # this seemed easy, will checkout properly later
|
||||||
|
Loading…
x
Reference in New Issue
Block a user