Skip to content

Commit

Permalink
FEAT: adjust config.xml update step
Browse files Browse the repository at this point in the history
  • Loading branch information
scottenock committed Sep 18, 2024
1 parent 8783dd8 commit 1239bec
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ jobs:
run: |
xmlstarlet ed -N w="http://www.w3.org/ns/widgets" -u "/w:widget/@version" -v "${{ env.TAG_VERSION }}" cordova/config.xml > cordova/newConfig.xml
mv cordova/newConfig.xml cordova/config.xml
- name: Commit config.xml
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add cordova/config.xml
git commit -m "CHORE: update config.xml" && git push || echo "config.xml has not changed. Nothing to commit."
- name: build APK
run: |
cd cordova
Expand All @@ -59,3 +53,13 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: cordova/platforms/android/app/build/outputs/bundle/release/app-release.aab
- name: Commit config.xml
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout master
git pull
xmlstarlet ed -N w="http://www.w3.org/ns/widgets" -u "/w:widget/@version" -v "${{ env.TAG_VERSION }}" cordova/config.xml > cordova/newConfig.xml
mv cordova/newConfig.xml cordova/config.xml
git add cordova/config.xml
git commit -m "CHORE: update config.xml" && git push || echo "config.xml has not changed. Nothing to commit."

0 comments on commit 1239bec

Please sign in to comment.