Skip to content

Commit 539b566

Browse files
fix: update tests
1 parent 0c48be7 commit 539b566

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

tests/docker/local-image.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,22 @@ commandTests:
152152
git init --bare /tmp/remote.git
153153
git -C /tmp/ws remote add origin /tmp/remote.git
154154
echo "identity override" > /tmp/ws/e2e-identity.txt
155+
export GITHUB_WORKSPACE=/tmp/ws
156+
export GITHUB_ACTOR=tester
157+
export GITHUB_REPOSITORY=owner/repo
158+
export GITHUB_OUTPUT=/tmp/github_output.txt
159+
export GITHUB_TOKEN=fake
160+
export INPUT_ORGANIZATION_DOMAIN=github.com
161+
export INPUT_REPOSITORY_PATH=.
162+
export INPUT_AMEND=false
163+
export INPUT_ALLOW_EMPTY_COMMIT=false
164+
export INPUT_TARGET_BRANCH=''
165+
export INPUT_COMMIT_MESSAGE='identity override commit'
166+
export INPUT_USER_NAME='Release Automation'
167+
export INPUT_USER_EMAIL='release-bot@example.com'
155168
set +e
156-
rc=0
157-
GITHUB_WORKSPACE=/tmp/ws \
158-
GITHUB_ACTOR=tester \
159-
GITHUB_REPOSITORY=owner/repo \
160-
GITHUB_OUTPUT=/tmp/github_output.txt \
161-
GITHUB_TOKEN=fake \
162-
INPUT_ORGANIZATION_DOMAIN=github.com \
163-
INPUT_REPOSITORY_PATH=. \
164-
INPUT_AMEND=false \
165-
INPUT_ALLOW_EMPTY_COMMIT=false \
166-
INPUT_TARGET_BRANCH='' \
167-
INPUT_COMMIT_MESSAGE='identity override commit' \
168-
INPUT_USER_NAME='Release Automation' \
169-
INPUT_USER_EMAIL='release-bot@example.com' \
170-
/entrypoint.sh || rc=$?
169+
/entrypoint.sh
170+
rc=$?
171171
set -e
172172
test "$rc" -ne 0
173173
test "$(git -C /tmp/ws log -1 --format=%an)" = "Release Automation"

0 commit comments

Comments
 (0)