create hub badges, repository dispatch only on crowdsecurity/crowdsec (#1838)
This commit is contained in:
parent
23ffa1e04f
commit
67e464281f
4
.github/workflows/bats-hub.yml
vendored
4
.github/workflows/bats-hub.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
|||
|
||||
- name: "Create Parsers badge"
|
||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }}
|
||||
with:
|
||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||
gistID: ${{ secrets.GIST_BADGES_ID }}
|
||||
|
@ -67,7 +67,7 @@ jobs:
|
|||
|
||||
- name: "Create Scenarios badge"
|
||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }}
|
||||
with:
|
||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||
gistID: ${{ secrets.GIST_BADGES_ID }}
|
||||
|
|
1
.github/workflows/dispatch_ci_hub.yaml
vendored
1
.github/workflows/dispatch_ci_hub.yaml
vendored
|
@ -13,6 +13,7 @@ jobs:
|
|||
steps:
|
||||
- name: Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v1
|
||||
if: ${{ github.repository_owner == 'crowdsecurity' }}
|
||||
with:
|
||||
token: ${{ secrets.DISPATCH_TOKEN }}
|
||||
event-type: trigger_ci_hub
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
*.dylib
|
||||
*~
|
||||
.pc
|
||||
.vscode
|
||||
|
||||
# Test binaries, built with `go test -c`
|
||||
*.test
|
||||
|
|
Loading…
Reference in a new issue