From 6656208eadd64d11a54f4545090928df494ee5b7 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 5 Sep 2023 16:55:29 +0200 Subject: [PATCH 1/2] ci: notify release for schema repository --- .github/workflows/notify-release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/notify-release.yml b/.github/workflows/notify-release.yml index 235e215e..b1d6e0d1 100644 --- a/.github/workflows/notify-release.yml +++ b/.github/workflows/notify-release.yml @@ -41,3 +41,21 @@ jobs: "draft": "false" } } + + update-schema: + runs-on: ubuntu-22.04 + steps: + - name: Update schema repository + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://api.github.com/repos/okp4/okp4-contract-schema/actions/workflows/68383422/dispatches' + method: 'POST' + customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OKP4_TOKEN }}"}' + data: |- + { + "ref": "main", + "inputs": { + "ref": "${{ github.event.release.tag_name }}", + "draft": "false" + } + } From 840ab4480b0797f9940374093b4f261ee9a99fc4 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 5 Sep 2023 16:56:40 +0200 Subject: [PATCH 2/2] ci: notify draft merge for schema repository --- .github/workflows/update-draft-docs.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/update-draft-docs.yml b/.github/workflows/update-draft-docs.yml index ccdeef75..14e57f44 100644 --- a/.github/workflows/update-draft-docs.yml +++ b/.github/workflows/update-draft-docs.yml @@ -25,3 +25,21 @@ jobs: "draft": "true" } } + + update-schema: + runs-on: ubuntu-22.04 + steps: + - name: Update draft docs repository + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://api.github.com/repos/okp4/okp4-contract-schema/actions/workflows/68383422/dispatches' + method: 'POST' + customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OKP4_TOKEN }}"}' + data: |- + { + "ref": "main", + "inputs": { + "version": "main", + "draft": "true" + } + }