diff --git a/.github/workflows/dispatch_spec_update.yml b/.github/workflows/dispatch_spec_update.yml index 13767fa..5a7f758 100644 --- a/.github/workflows/dispatch_spec_update.yml +++ b/.github/workflows/dispatch_spec_update.yml @@ -1,21 +1,37 @@ name: Dispatch Spec Update -on: + +on: workflow_dispatch: push: branches: - main +permissions: {} + jobs: - Dispatch: + dispatch: + name: Dispatch spec update to ${{ matrix.repository }} runs-on: ubuntu-latest + strategy: + fail-fast: false matrix: - repository: ['dropbox/dropbox-sdk-python', 'dropbox/dropbox-sdk-js', 'dropbox/dropbox-sdk-dotnet', 'dropbox/dropbox-api-v2-explorer'] + repository: + - dropbox/dropbox-sdk-python + - dropbox/dropbox-sdk-js + - dropbox/dropbox-sdk-dotnet + - dropbox/dropbox-api-v2-explorer + steps: - - name: Dispatch Update - uses: peter-evans/repository-dispatch@v1 + - name: Dispatch spec update + uses: peter-evans/repository-dispatch@v4 with: token: ${{ secrets.SPEC_UPDATE_TOKEN }} repository: ${{ matrix.repository }} event-type: spec_update - \ No newline at end of file + client-payload: >- + { + "repository": "${{ github.repository }}", + "ref": "${{ github.ref }}", + "sha": "${{ github.sha }}" + }