add a workflow to trigger a PR creation on Docker Documentation repo

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-03-18 14:23:12 +01:00
parent 5b6b674da9
commit 3b7f5ffc6b

23
.github/workflows/dispatch-release.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: dispatch release event to downstream repositories
on:
release:
types: [published]
jobs:
dispatch_release_version:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'docker',
repo: 'docker.github.io',
workflow_id: 'compose_release',
ref: 'master',
inputs: {
release: ${{ GITHUB_REF }},
},
})