From b0f4097cbe05cb31a198864bc19615fdc5c7a1c5 Mon Sep 17 00:00:00 2001 From: Romain Pironneau <929716+romainpi@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:30:46 +0200 Subject: [PATCH] CI: Tweaks for the tag creating jobs: * Makes sure the `create-tags-for-past-releases` job runs before `create-git-tag`. * Have the `create-git-tag` fetch all Git history to actually be able to detect past tags. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b503d10a..693cc743 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ env: jobs: create-tags-for-past-releases: name: Create tags for past releases + # This job has to be removed once it is ran succesfully if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -130,6 +131,7 @@ jobs: [ $empty -eq 1 ] || grep -q "is already uploaded" < $RODIO_TMP create-git-tag: + needs: create-tags-for-past-releases # This line needs to be removed once the `create-tags-for-past-releases` job is removed if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -144,6 +146,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + fetch-depth: 0 # Fetch all history to list all existing tags token: ${{ secrets.WORKFLOW_TOKEN }} - name: Extract version from Cargo.toml id: extract_version