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.
This commit is contained in:
2
.github/workflows/cargo_audit.yml
vendored
2
.github/workflows/cargo_audit.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user