From cbe0899c749109769ce8f83fcf3e20644aaa09c1 Mon Sep 17 00:00:00 2001 From: Phil Salant Date: Mon, 25 Jul 2022 11:43:44 -0600 Subject: [PATCH] Dispatch a repository event on new published releases (#938) * Add release dispatch event action * Update `CHANGELOG.md` --- .github/workflows/release_event.yml | 17 +++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/release_event.yml diff --git a/.github/workflows/release_event.yml b/.github/workflows/release_event.yml new file mode 100644 index 0000000000..58dd16f443 --- /dev/null +++ b/.github/workflows/release_event.yml @@ -0,0 +1,17 @@ +name: Release Dispatch Event + +on: + release: + types: [released] + +jobs: + Notify-of-New-Release: + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.DISPATCH_ACCESS_TOKEN }} + repository: ethyca/fidesctl-plus + event-type: new-fidesctl-release + client-payload: '{"tag": "${{ github.event.release.tag_name }}", "url": "${{ github.event.release.html_url }}"}' diff --git a/CHANGELOG.md b/CHANGELOG.md index 80747de10a..e30d591012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ The types of changes are: ### Developer Experience * Remove `API_PREFIX` from fidesctl/core/utils.py and change references to `API_PREFIX` in fidesctl/api/reoutes/util.py [922](https://github.com/ethyca/fides/pull/922) +* When releases are published, dispatch a repository webhook event to ethyca/fidesctl-plus [#938](https://github.com/ethyca/fides/pull/938) ### Docs