Skip to content

Commit

Permalink
ci: create dummy json if building non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc authored Aug 28, 2022
1 parent fb2b9d9 commit 423cb4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
overwrite: false

- name: Switch to update branch
run: |
git checkout -f update || { git switch --discard-changes --orphan update; : >dummy.json; }
run: git checkout -f update || git switch --discard-changes --orphan update

- name: Update changelog and Magisk update jsons
id: update_config
Expand Down Expand Up @@ -101,6 +100,7 @@ jobs:
UPDATE_MUSIC_ARM_JSON=$(get_update_json "$MUSIC_VER" "${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}" "$MUSIC_ARM_DLURL" "$CHANGELOG_URL")
echo "$UPDATE_MUSIC_ARM_JSON" >music-update-arm-v7a.json
fi
if [ ! -f *.json ]; then : >dummy.json; fi
- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 423cb4c

Please sign in to comment.