Skip to content

Commit

Permalink
ci(releases): Fix conditional for nightlies (#657)
Browse files Browse the repository at this point in the history
The previous conditional statement was not applying correctly for
nightly jobs, which broke the CD jobs because the upload rust binary
action was not being instructed to use a specific tag.
  • Loading branch information
afnanenayet authored Jun 11, 2023
1 parent 1cce48d commit 4876992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
# from there.
- name: Upload Rust binaries for nightly
uses: taiki-e/upload-rust-binary-action@v1
if: github.event.inputs.tag_name == 'nightly'
if: env.VERSION == 'nightly'
with:
bin: diffsitter
archive: $bin-$target
Expand All @@ -223,7 +223,7 @@ jobs:

- name: Upload Rust binaries for release
uses: taiki-e/upload-rust-binary-action@v1
if: github.event.inputs.tag_name != 'nightly'
if: env.VERSION != 'nightly'
with:
bin: diffsitter
archive: $bin-$target
Expand Down

0 comments on commit 4876992

Please # to comment.