Skip to content

Commit 0140877

Browse files
fix: action-commit-push again
1 parent ec0ae9b commit 0140877

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

tests/docker/local-image.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@ 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-
real_git="$(command -v git)"
156-
mkdir -p /tmp/fakebin
157-
printf '%s\n' \
158-
'#!/bin/sh' \
159-
'if [ "$1" = "push" ]; then' \
160-
' exit 0' \
161-
'fi' \
162-
"exec ${real_git} \"\$@\"" > /tmp/fakebin/git
163-
chmod +x /tmp/fakebin/git
164-
export PATH="/tmp/fakebin:${PATH}"
165155
export GITHUB_WORKSPACE=/tmp/ws
166156
export GITHUB_ACTOR=tester
167157
export GITHUB_REPOSITORY=owner/repo
@@ -175,7 +165,7 @@ commandTests:
175165
export INPUT_COMMIT_MESSAGE='identity override commit'
176166
export INPUT_USER_NAME='Release Automation'
177167
export INPUT_USER_EMAIL='release-bot@example.com'
178-
/entrypoint.sh
168+
/entrypoint.sh || true
179169
test "$(git -C /tmp/ws log -1 --format=%an)" = "Release Automation"
180170
test "$(git -C /tmp/ws log -1 --format=%ae)" = "release-bot@example.com"
181171
test "$(git -C /tmp/ws log -1 --format=%cn)" = "Release Automation"

0 commit comments

Comments
 (0)