Skip to content

Commit aca3fd1

Browse files
ci: Push release atomically
This should make things a bit tighter.
1 parent 4e11fa8 commit aca3fd1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ jobs:
5151
meson setup . _build
5252
meson dist -C _build
5353
54-
- name: Push updated translations
55-
if: ${{ !fromJSON(github.event.inputs.dryRun) }}
56-
run: |
57-
git push
58-
5954
- name: Extract release information
6055
env:
6156
releaseVersion: ${{ github.event.inputs.version }}
@@ -97,9 +92,10 @@ jobs:
9792
git commit --allow-empty -m $releaseVersion
9893
git tag -a $releaseVersion -m $releaseVersion
9994
100-
if [ "$DRY_RUN" = "false" ]; then
101-
git push --follow-tags
102-
fi
95+
- name: Push translations, release commit, and tag
96+
if: ${{ !fromJSON(github.event.inputs.dryRun) }}
97+
run: |
98+
git push --atomic --follow-tags
10399
104100
- name: Create release
105101
if: ${{ !fromJSON(github.event.inputs.dryRun) }}

0 commit comments

Comments
 (0)