Skip to content

Commit

Permalink
github: revert back to running git fetch --tags manually
Browse files Browse the repository at this point in the history
checkout@v4 fetch-tags: true does not seem to work as expected
[1]. Version matrix ends up missing the tag for stable:

matrix={"include":[{"ref":"master","name":"dev"},{"ref":"","name":"stable"}]}

Work around this by reverting back to running git fetch --tags manually.

[1] actions/checkout#1781
  • Loading branch information
jnikula committed Sep 7, 2024
1 parent d2345cf commit 422a41e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
matrix: ${{ steps.version-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- name: Fetch tags
run: git fetch --tags origin
- name: Set version matrix
id: version-matrix
run: echo "matrix=$(./.github/config.sh)" | tee $GITHUB_OUTPUT
Expand Down

0 comments on commit 422a41e

Please sign in to comment.