Skip to content

Commit

Permalink
✨ Trigger cnspec bump in dependant repos
Browse files Browse the repository at this point in the history
This trigger a PR creating in the dependant repos:
- packer-plugin-cnspec

These repo will then create a PR to get the submitted cnspec version.

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Feb 23, 2024
1 parent 4df2afd commit 5319cdc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/bump-cnspec-in-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger cnspec bump in dependant repositories

on:
release:
types: [published]

jobs:
trigger-cnspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
repo: [packer-plugin-cnspec]
steps:
- name: Trigger cnspec bump in server
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.RELEASR_ACTION_TOKEN }}
repository: "mondoohq/${{ matrix.repo }}"
event-type: update-cnspec
client-payload: '{
"version": "${{ github.ref_name }}"
}'

0 comments on commit 5319cdc

Please sign in to comment.