Skip to content

Commit

Permalink
Avoid race condition in release automation and fix display
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Oct 23, 2024
1 parent fe5a07e commit 4473eac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/shippable_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ jobs:
# Ready to commit. Make sure to pull again to reduce likelihood of race conditions
git status
git pull
git commit -m "Release: ${APPLICATION_LABEL} ${FULL_VERSION_NAME}"
git pull --rebase -X ours
git log -n 5
set +e
Expand All @@ -337,6 +337,7 @@ jobs:
echo "Push rejected, trying again once in 5 seconds"
sleep 5
git pull --rebase -X ours
git log -n 5
git push
fi
Expand Down Expand Up @@ -840,7 +841,7 @@ jobs:
matrixRoomId: ${{ vars.MATRIX_NOTIFY_ROOM }}
matrixToken: ${{ secrets.MATRIX_NOTIFY_TOKEN }}
message: >-
${{ needs.publish_release.k9mail_full_version_name }} [is available](${{ needs.publish_release.outputs.k9mail_release_url }})
${{ needs.publish_release.outputs.k9mail_full_version_name }} [is available](${{ needs.publish_release.outputs.k9mail_release_url }})
- name: Notify Success (Daily)
if: ${{ vars.MATRIX_NOTIFY_ROOM && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && needs.dump_config.outputs.releaseType == 'daily' && steps.last_status.outputs.last_status == 'failure' }}
Expand Down

0 comments on commit 4473eac

Please sign in to comment.