From df3635f29a0e006e0c09cd0215eac7f70b919522 Mon Sep 17 00:00:00 2001 From: Ilya Sumbatyants Date: Sat, 25 Nov 2023 02:46:13 +0400 Subject: [PATCH] Add notification workflow --- .github/workflows/notify.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/notify.yaml diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml new file mode 100644 index 0000000..aa67b53 --- /dev/null +++ b/.github/workflows/notify.yaml @@ -0,0 +1,23 @@ +name: Notify dependent api clients +on: + push: + branches: [ "master" ] + workflow_dispatch: +permissions: + actions: write + +jobs: + notify-go-client: + name: Notify onpremless/go-client + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'onpremless', + repo: 'go-client', + workflow_id: 'gen-n-pub.yaml', + ref: 'master' + })