Skip to content

Commit

Permalink
fix: Can't use env within job level conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
iwishiwasaneagle committed Nov 7, 2023
1 parent c1339a3 commit 859b3fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,22 @@ jobs:
name: Publish on GitHub
runs-on: ubuntu-latest
needs: [create-tag, setup-envs, build]
if: needs.create-tag.outputs.skip == 'false' && !env.ACT
if: needs.create-tag.outputs.skip == 'false'
steps:
- name: Checkout
if: !env.ACT
uses: actions/checkout@v4

- name: Download artifacts
if: !env.ACT
id: download
uses: actions/download-artifact@v3
with:
name: main-pdf-release
path: main-pdf-release

- name: Upload the release
if: !env.ACT
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 859b3fc

Please sign in to comment.