Skip to content

Commit 4ddb53d

Browse files
committed
Use github context instead of env.
1 parent cc0497f commit 4ddb53d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run build --if-present
3232
if: (!startsWith(github.ref, 'refs/tags/v'))
3333
env:
34-
OVERRIDE_VERSION: ${{ format('#{0}-dev', env.GITHUB_RUN_NUMBER) }}
34+
OVERRIDE_VERSION: ${{ format('#{0}-dev', github.run_number) }}
3535

3636
- name: Build App (Release)
3737
run: npm run build --if-present
@@ -56,7 +56,7 @@ jobs:
5656
uses: allenevans/set-env@v1.0.0
5757
if: (!startsWith(github.ref, 'refs/tags/v'))
5858
with:
59-
RELEASE_VERSION: ${{ format('#{0}-dev', env.GITHUB_RUN_NUMBER) }}
59+
RELEASE_VERSION: ${{ format('#{0}-dev', github.run_number) }}
6060
TARGET_BRANCH: 'gh-pages'
6161
TARGET_PATH: 'app/dev'
6262

0 commit comments

Comments
 (0)