File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,21 +153,24 @@ 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- GITHUB_WORKSPACE=/tmp/ws \
157- GITHUB_ACTOR=tester \
158- GITHUB_REPOSITORY=owner/repo \
159- GITHUB_OUTPUT=/tmp/github_output.txt \
160- GITHUB_TOKEN=fake \
161- INPUT_ORGANIZATION_DOMAIN=github.com \
162- INPUT_REPOSITORY_PATH=. \
163- INPUT_AMEND=false \
164- INPUT_ALLOW_EMPTY_COMMIT=false \
165- INPUT_TARGET_BRANCH='' \
166- INPUT_COMMIT_MESSAGE='identity override commit' \
167- INPUT_USER_NAME='Release Automation' \
168- INPUT_USER_EMAIL='release-bot@example.com' \
169- /entrypoint.sh
170- rc=$?
156+ if GITHUB_WORKSPACE=/tmp/ws \
157+ GITHUB_ACTOR=tester \
158+ GITHUB_REPOSITORY=owner/repo \
159+ GITHUB_OUTPUT=/tmp/github_output.txt \
160+ GITHUB_TOKEN=fake \
161+ INPUT_ORGANIZATION_DOMAIN=github.com \
162+ INPUT_REPOSITORY_PATH=. \
163+ INPUT_AMEND=false \
164+ INPUT_ALLOW_EMPTY_COMMIT=false \
165+ INPUT_TARGET_BRANCH='' \
166+ INPUT_COMMIT_MESSAGE='identity override commit' \
167+ INPUT_USER_NAME='Release Automation' \
168+ INPUT_USER_EMAIL='release-bot@example.com' \
169+ /entrypoint.sh; then
170+ rc=0
171+ else
172+ rc=$?
173+ fi
171174 set -e
172175 test "$rc" -ne 0
173176 test "$(git -C /tmp/ws log -1 --format=%an)" = "Release Automation"
You can’t perform that action at this time.
0 commit comments