From e434a75b01e1e7ba942a7418aec2a6bcb50c5c03 Mon Sep 17 00:00:00 2001 From: Lukasz Dziedziak Date: Thu, 5 Dec 2024 08:57:37 +0100 Subject: [PATCH] chore(sync): checkout repository after sync (#11) Signed-off-by: Lukasz Dziedziak --- .github/workflows/sync-with-upstream.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-with-upstream.yaml b/.github/workflows/sync-with-upstream.yaml index de1fc2450..38f71798a 100644 --- a/.github/workflows/sync-with-upstream.yaml +++ b/.github/workflows/sync-with-upstream.yaml @@ -49,12 +49,10 @@ jobs: - name: No new commits if: steps.sync.outputs.has_new_commits == 'false' run: echo "There were no new commits." - - name: Refresh repository - id: refresh + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 if: steps.sync.outputs.has_new_commits == 'true' - shell: bash - run: | - git fetch --all --tags + with: + fetch-depth: 0 - name: Get new version tag id: new-version-tag if: steps.sync.outputs.has_new_commits == 'true'