diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index d2da41ce..7272f162 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -19,22 +19,22 @@ jobs: run: | echo "version=$(jq .version metadata.json.in)" >>$GITHUB_OUTPUT + - name: Setup Git user + run: | + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + + - run: .github/bump-version.sh + - name: Get latest version tag id: get_tag run: | - echo "tag=$(git describe --tags --match="v[0-9]*" --abbrev=0 HEAD)" >>$GITHUB_OUTPUT + echo "tag=$(git describe --tags --match='v[0-9]*' --abbrev=0 HEAD)" >>$GITHUB_OUTPUT - name: Check version matches the latest tag run: | test "v${{ steps.get_version.outputs.version }}" = "${{ steps.get_tag.outputs.tag }}" - - name: Setup Git user - run: | - git config user.name 'github-actions[bot]' - git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - - - run: .github/bump-version.sh - - name: Push run: | git push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f2afd20..41cc191f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 - fetch-tags: true - name: Read version from metadata id: get_version