Skip to content

Commit

Permalink
ci: Push release atomically
Browse files Browse the repository at this point in the history
This should make things a bit tighter.
  • Loading branch information
GeorgesStavracas committed Oct 10, 2024
1 parent 4e11fa8 commit aca3fd1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ jobs:
meson setup . _build
meson dist -C _build
- name: Push updated translations
if: ${{ !fromJSON(github.event.inputs.dryRun) }}
run: |
git push
- name: Extract release information
env:
releaseVersion: ${{ github.event.inputs.version }}
Expand Down Expand Up @@ -97,9 +92,10 @@ jobs:
git commit --allow-empty -m $releaseVersion
git tag -a $releaseVersion -m $releaseVersion
if [ "$DRY_RUN" = "false" ]; then
git push --follow-tags
fi
- name: Push translations, release commit, and tag
if: ${{ !fromJSON(github.event.inputs.dryRun) }}
run: |
git push --atomic --follow-tags
- name: Create release
if: ${{ !fromJSON(github.event.inputs.dryRun) }}
Expand Down

0 comments on commit aca3fd1

Please sign in to comment.