Skip to content

Commit

Permalink
use env variable in if instead of secret
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Feb 8, 2023
1 parent 1cc7de2 commit ad38d45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
secrets.NETLIFY_AUTH_TOKEN != ''
env.NETLIFY_AUTH_TOKEN_PRESENT
env:
NETLIFY_AUTH_TOKEN_PRESENT: ${{ secrets.NETLIFY_AUTH_TOKEN != '' }}
steps:
# Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action
# For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
Expand Down

0 comments on commit ad38d45

Please sign in to comment.