Skip to content

Commit

Permalink
CI: ensure that tags are fetched so that zls --version works
Browse files Browse the repository at this point in the history
The previous deployment just published ZLS 0.12.0
  • Loading branch information
Techatrix committed Feb 13, 2024
1 parent c09bc14 commit 5f57473
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: "true"

- uses: goto-bus-stop/setup-zig@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: "true"

- name: Grab zig
uses: goto-bus-stop/setup-zig@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ jobs:
if: github.event_name != 'pull_request_target'
uses: actions/checkout@v4
with:
fetch-tags: "true"
path: zls

- name: Checkout zls (PR)
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
fetch-tags: "true"
path: zls
ref: "refs/pull/${{ github.event.number }}/merge"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: "true"

- uses: goto-bus-stop/setup-zig@v2
with:
Expand Down

0 comments on commit 5f57473

Please sign in to comment.