Skip to content

Commit 0c48be7

Browse files
fix: update tests
1 parent 4117ab5 commit 0c48be7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/docker/local-image.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ commandTests:
153153
git -C /tmp/ws remote add origin /tmp/remote.git
154154
echo "identity override" > /tmp/ws/e2e-identity.txt
155155
set +e
156-
if GITHUB_WORKSPACE=/tmp/ws \
156+
rc=0
157+
GITHUB_WORKSPACE=/tmp/ws \
157158
GITHUB_ACTOR=tester \
158159
GITHUB_REPOSITORY=owner/repo \
159160
GITHUB_OUTPUT=/tmp/github_output.txt \
@@ -166,11 +167,7 @@ commandTests:
166167
INPUT_COMMIT_MESSAGE='identity override commit' \
167168
INPUT_USER_NAME='Release Automation' \
168169
INPUT_USER_EMAIL='release-bot@example.com' \
169-
/entrypoint.sh; then
170-
rc=0
171-
else
172-
rc=$?
173-
fi
170+
/entrypoint.sh || rc=$?
174171
set -e
175172
test "$rc" -ne 0
176173
test "$(git -C /tmp/ws log -1 --format=%an)" = "Release Automation"

0 commit comments

Comments
 (0)