Skip to content

Commit 0888a77

Browse files
committed
fix(ci): rebase before pushing release manifest changes
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent f7cdd93 commit 0888a77

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/build-fcash2-upload-android.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ jobs:
129129
git add .well-known/release-manifest.json
130130
git diff --cached --quiet && echo "No changes to commit" && exit 0
131131
git commit -m "build: update release manifest"
132+
git pull --rebase https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git code/cash
132133
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:code/cash
133134
134135
- name: Upload build artifacts

.github/workflows/bump-patch.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ jobs:
4848

4949
- name: Commit & Push changes
5050
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 }}
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+
|| format('build: bump Flipcash to {0}', steps.manifest.outputs.version) }}"
60+
git commit -m "$COMMIT_MSG"
61+
git pull --rebase https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git code/cash
62+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:code/cash

0 commit comments

Comments
 (0)