From 2400a3de80b4f19245bcf85e6d92c3158f2a8926 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Mon, 28 Oct 2024 23:11:10 +0100 Subject: [PATCH] use set -e so that the step exits on first failure currently we execute echo in any case which succeeds --- .github/workflows/gt-update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gt-update.yml b/.github/workflows/gt-update.yml index ec03607..6a0b669 100644 --- a/.github/workflows/gt-update.yml +++ b/.github/workflows/gt-update.yml @@ -93,7 +93,9 @@ jobs: - name: gt update id: gt_update run: | - gt update -r "${{ matrix.remote }}" && gt update -r "${{ matrix.remote }}" + set -e + gt update -r "${{ matrix.remote }}" + gt update -r "${{ matrix.remote }}" echo "remote_version=$(git --git-dir='.gt/remotes/${{ matrix.remote}}/repo/.git' tag | sort --version-sort | tail -n 1)" >> $GITHUB_OUTPUT - id: has_changes name: git status