From 595d9fe157171a42d63c61da752eb13b0d4d6d8c Mon Sep 17 00:00:00 2001 From: glokta1 Date: Tue, 14 Feb 2023 22:58:53 +0530 Subject: [PATCH] Add workflow to send dispatch event to buildpacks/samples The workflow will trigger on published releases of lifecycle. Samples will be rebuilt on receiving dispatch events and updated with the latest lifecycle version. See https://github.com/buildpacks/lifecycle/issues/801 --- .github/workflows/release-dispatch.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/release-dispatch.yml diff --git a/.github/workflows/release-dispatch.yml b/.github/workflows/release-dispatch.yml new file mode 100644 index 000000000..ca19e5b12 --- /dev/null +++ b/.github/workflows/release-dispatch.yml @@ -0,0 +1,17 @@ +name: release-dispatch + +on: + release: + types: + - published + +jobs: + send-release-dispatch: + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.PLATFORM_GITHUB_TOKEN }} + event-type: lifecycle-release + repository: buildpacks/samples