Skip to content

Commit 8626d84

Browse files
fix: update format in action-commit-push (#32)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent afada1f commit 8626d84

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/e2e-action-commit-push.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,12 @@ jobs:
355355
run: |
356356
sudo chown -R "$(id -u):$(id -g)" repo
357357
cd repo
358-
git fetch origin "test/e2e-commit-push-identity-${{ github.run_id }}"
359-
test "$(git log -1 --format=%an "origin/test/e2e-commit-push-identity-${{ github.run_id }}")" = "Release Automation"
360-
test "$(git log -1 --format=%ae "origin/test/e2e-commit-push-identity-${{ github.run_id }}")" = "release-bot@example.com"
361-
test "$(git log -1 --format=%cn "origin/test/e2e-commit-push-identity-${{ github.run_id }}")" = "Release Automation"
362-
test "$(git log -1 --format=%ce "origin/test/e2e-commit-push-identity-${{ github.run_id }}")" = "release-bot@example.com"
358+
branch="test/e2e-commit-push-identity-${{ github.run_id }}"
359+
git fetch origin "${branch}"
360+
test "$(git log -1 --format=%an FETCH_HEAD)" = "Release Automation"
361+
test "$(git log -1 --format=%ae FETCH_HEAD)" = "release-bot@example.com"
362+
test "$(git log -1 --format=%cn FETCH_HEAD)" = "Release Automation"
363+
test "$(git log -1 --format=%ce FETCH_HEAD)" = "release-bot@example.com"
363364
364365
- name: Cleanup - delete test branch
365366
if: ${{ always() && inputs.mode == 'ref' }}

0 commit comments

Comments
 (0)