Skip to content

Commit 8549c58

Browse files
committed
github: Fix nightly conditional check
1 parent a37c0e7 commit 8549c58

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# which allows users to roll back. It is also used to build
4545
# the changelog.
4646
- name: Create build-specific nightly tag
47-
if: ${{ env.IS_NIGHTLY }}
47+
if: env.IS_NIGHTLY == true
4848
uses: actions/github-script@v5
4949
env:
5050
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
@@ -58,7 +58,7 @@ jobs:
5858
uses: mikepenz/release-changelog-builder-action@v2
5959
with:
6060
configuration: "./.github/changelog.json"
61-
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
61+
fromTag: ${{ env.IS_NIGHTLY == true && 'nightly' || '' }}
6262
toTag: ${{ steps.release_info.outputs.tag_name }}
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -122,13 +122,13 @@ jobs:
122122
cache-on-failure: true
123123

124124
- name: Apple M1 setup
125-
if: ${{ matrix.job.target == 'aarch64-apple-darwin' }}
125+
if: matrix.job.target == 'aarch64-apple-darwin'
126126
run: |
127127
echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV
128128
echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV
129129
130130
- name: Linux ARM setup
131-
if: ${{ matrix.job.target == 'aarch64-unknown-linux-gnu' }}
131+
if: matrix.job.target == 'aarch64-unknown-linux-gnu'
132132
run: |
133133
sudo apt-get update -y
134134
sudo apt-get install -y gcc-aarch64-linux-gnu
@@ -148,7 +148,7 @@ jobs:
148148
PLATFORM_NAME: ${{ matrix.job.platform }}
149149
TARGET: ${{ matrix.job.target }}
150150
ARCH: ${{ matrix.job.arch }}
151-
VERSION_NAME: ${{ (env.IS_NIGHTLY && 'nightly') || needs.prepare.outputs.tag_name }}
151+
VERSION_NAME: ${{ (env.IS_NIGHTLY == true && 'nightly') || needs.prepare.outputs.tag_name }}
152152
run: |
153153
if [ "$PLATFORM_NAME" == "linux" ]; then
154154
tar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release forge cast anvil chisel
@@ -168,11 +168,11 @@ jobs:
168168

169169
- name: Build man page
170170
id: man
171-
if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }}
171+
if: matrix.job.target == 'x86_64-unknown-linux-gnu'
172172
env:
173173
PLATFORM_NAME: ${{ matrix.job.platform }}
174174
TARGET: ${{ matrix.job.target }}
175-
VERSION_NAME: ${{ (env.IS_NIGHTLY && 'nightly') || needs.prepare.outputs.tag_name }}
175+
VERSION_NAME: ${{ (env.IS_NIGHTLY == true && 'nightly') || needs.prepare.outputs.tag_name }}
176176
run: |
177177
sudo apt-get -y install help2man
178178
help2man -N ./target/${TARGET}/release/forge > forge.1
@@ -202,7 +202,7 @@ jobs:
202202
# If this is a nightly release, it also updates the release
203203
# tagged `nightly` for compatibility with `foundryup`
204204
- name: Update nightly release
205-
if: ${{ env.IS_NIGHTLY }}
205+
if: env.IS_NIGHTLY == true
206206
uses: softprops/action-gh-release@v1
207207
with:
208208
name: "Nightly"
@@ -224,7 +224,7 @@ jobs:
224224

225225
# Moves the `nightly` tag to `HEAD`
226226
- name: Move nightly tag
227-
if: ${{ env.IS_NIGHTLY }}
227+
if: env.IS_NIGHTLY == true
228228
uses: actions/github-script@v5
229229
with:
230230
script: |

0 commit comments

Comments
 (0)