@@ -47,12 +47,18 @@ jobs:
4747 run : bash scripts/update-release-manifest.sh
4848
4949 - name : Commit & Push changes
50- if : steps.manifest.outputs.prod_changed == 'true' || steps.manifest.outputs.forced == 'true'
51- uses : actions-js/push@master
52- with :
53- message : >-
54- ${{ steps.manifest.outputs.prod_changed == 'true'
55- && format('build: release Flipcash {0} ({1}), bump to {2}', steps.manifest.outputs.new_prod_name, steps.manifest.outputs.new_prod, steps.manifest.outputs.version)
56- || format('build: bump Flipcash to {0}', steps.manifest.outputs.version) }}
57- branch : " code/cash"
58- github_token : ${{ secrets.BOT_GITHUB_TOKEN }}
50+ if : steps.manifest.outputs.manifest_changed == 'true' || steps.manifest.outputs.prod_changed == 'true' || steps.manifest.outputs.forced == 'true'
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.BOT_GITHUB_TOKEN }}
53+ run : |
54+ git config user.name "github-actions[bot]"
55+ git config user.email "github-actions[bot]@users.noreply.github.com"
56+ git add -A
57+ COMMIT_MSG="${{ steps.manifest.outputs.prod_changed == 'true'
58+ && format('build: release Flipcash {0} ({1}), bump to {2}', steps.manifest.outputs.new_prod_name, steps.manifest.outputs.new_prod, steps.manifest.outputs.version)
59+ || (steps.manifest.outputs.forced == 'true'
60+ && format('build: bump Flipcash to {0}', steps.manifest.outputs.version)
61+ || 'build: update release manifest') }}"
62+ git commit -m "$COMMIT_MSG"
63+ git pull --rebase https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git code/cash
64+ git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:code/cash
0 commit comments