Skip to content
Snippets Groups Projects
Commit 2e922271 authored by Jean-Michel Picod's avatar Jean-Michel Picod
Browse files

Fix cargo audit workflow

The env context is only available at the step level, not the job one so
we need to use the github context instead. But the head_ref will only be
populated if we run in a pull_request event. So until we find a better
solution, let's match on the repo URL.
parent 4930bff7
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ on: ...@@ -6,7 +6,7 @@ on:
jobs: jobs:
audit: audit:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
if: env.GITHUB_HEAD_REF == 0 if: github.repository == 'google/OpenSK'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment