Skip to content

Commit

Permalink
chore: ci: fetch tags manually
Browse files Browse the repository at this point in the history
actions/checkout is broken and 'fetch-tags: true' does not help
to fetch tag objects: actions/checkout#290

So work around it by fetching tags manually.
  • Loading branch information
istankovic committed Jan 29, 2025
1 parent 461ff0f commit 3cd8338
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
needs: build-android
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: force-fetch the tag to work around actions/checkout#290
run: git fetch -f origin ${{ github.ref }}
- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: set up jdk 17
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-jvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: force-fetch the tag to work around actions/checkout#290
run: git fetch -f origin ${{ github.ref }}
- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: setup rust
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
with:
xcode-version: '14.3.1'
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: force-fetch the tag to work around actions/checkout#290
run: git fetch -f origin ${{ github.ref }}
- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: "setup rust"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: force-fetch the tag to work around actions/checkout#290
run: git fetch -f origin ${{ github.ref }}
- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down

0 comments on commit 3cd8338

Please sign in to comment.