From a98c89349acee416f40891d0c84d8a02f0a0d320 Mon Sep 17 00:00:00 2001 From: Artem Dvoretskii Date: Wed, 31 Jan 2024 22:51:52 +0300 Subject: [PATCH] add ref to checkout action --- .github/workflows/e2e-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ab9a8da..a1a11e0 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -40,6 +40,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - name: setup db env: @@ -76,7 +78,6 @@ jobs: run: | git config --local user.email "adwski@users.noreply.github.com" git config --local user.name "GitHub Action" - git checkout -t -b $GITHUB_HEAD_REF origin/$GITHUB_HEAD_REF git add README.md git commit -m "chore: update coverage badge" - git push origin $GITHUB_HEAD_REF + git push