Skip to content

Commit 4117ab5

Browse files
feat: add ref action-commit-push tests
1 parent 254f59a commit 4117ab5

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

tests/docker/local-image.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)