Skip to content

Commit

Permalink
✨ Automatically create cnquery update PR (#3020)
Browse files Browse the repository at this point in the history
A new cnquery release will trigger a workflow in the cnspec repo to create a PR which updates the dep.

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker authored Feb 12, 2024
1 parent 9e939d8 commit 9cfc122
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bump-cnspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Trigger cnquery bump in cnspec

on:
release:
types: [published]

jobs:
trigger-cnspec:
runs-on: ubuntu-latest
steps:
- name: Trigger cnquery bump in cnspec
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.RELEASR_ACTION_TOKEN }}
repository: "mondoohq/cnspec"
event-type: update-cnquery
client-payload: '{
"version": "${{ github.ref_name }}"
}'

0 comments on commit 9cfc122

Please sign in to comment.