From 5319cdca0585005d7575ef0bab0c33da8406d5c4 Mon Sep 17 00:00:00 2001 From: Christian Zunker Date: Fri, 23 Feb 2024 15:24:52 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Trigger=20cnspec=20bump=20in=20depe?= =?UTF-8?q?ndant=20repos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/bump-cnspec-in-deps.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/bump-cnspec-in-deps.yaml diff --git a/.github/workflows/bump-cnspec-in-deps.yaml b/.github/workflows/bump-cnspec-in-deps.yaml new file mode 100644 index 00000000..39f4a04f --- /dev/null +++ b/.github/workflows/bump-cnspec-in-deps.yaml @@ -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 }}" + }'