Skip to content

Commit f85d9b0

Browse files
fix(release ci): pull latest sources before commiting distro data. + do not run create-release if build fails
1 parent 70648ef commit f85d9b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-and-release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
create-release:
5555
runs-on: ubuntu-latest
5656

57-
if: ${{ always() }}
5857
needs: suite-build
5958

6059
steps:
@@ -96,10 +95,13 @@ jobs:
9695
- name: ⚙️ Generate New distro-data.json
9796
run: sudo python3 gen_data/gen-update-json.py --release-tag ${{ env.VERSIONTAG }}
9897

98+
- name: ⚙️ Run git pull
99+
run: git pull -v
100+
99101
- name: ⚙️ Update distro-data.json
100102
uses: stefanzweifel/git-auto-commit-action@v4
101103
with:
102104
skip_fetch: false
103105
skip_checkout: false
104-
commit_message: 'AUTO JOB: (MAIN) update distro-data.json for ${{ env.VERSIONTAG }}'
106+
commit_message: 'AUTO BOT JOB: (MAIN) update distro-data.json for ${{ env.VERSIONTAG }}'
105107
file_pattern: distro-data.json

0 commit comments

Comments
 (0)