Skip to content

Commit

Permalink
chore: uses native gh tool (envoyproxy#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Anuraag Agrawal <[email protected]>
  • Loading branch information
jcchavezs and anuraaga authored Oct 5, 2022
1 parent 933d581 commit 0cfce2c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/nightly-coraza-check.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Nightly Coraza Check
on:
pull_request:
paths:
- ".github/workflows/nightly-coraza-check.yaml"
schedule:
- cron: "0 4 * * *"

Expand All @@ -9,7 +12,7 @@ env:
WABT_VERSION: 1.0.29

jobs:
build:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out code
Expand Down Expand Up @@ -43,10 +46,10 @@ jobs:
${{ runner.os }}-tinygo-
- name: Get last commit of coraza
uses: sergeysova/jq-action@v2
id: coraza-latest-commit
with:
cmd: curl -s https://api.github.com/repos/corazawaf/coraza/commits/v3/dev | jq -r .sha
run: echo "::set-output name=value::$(gh api repos/corazawaf/coraza/commits/v3/dev -q .sha)"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Fetch last coraza version
run: go get -u github.com/corazawaf/coraza/v3@${{ steps.coraza-latest-commit.outputs.value }} && go mod tidy
Expand Down

0 comments on commit 0cfce2c

Please sign in to comment.