mirror of
https://github.com/docker/compose.git
synced 2025-05-03 06:00:13 +02:00
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:
parent
5b6b674da9
commit
3b7f5ffc6b
23
.github/workflows/dispatch-release.yml
vendored
Normal file
23
.github/workflows/dispatch-release.yml
vendored
Normal 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 }},
|
||||||
|
},
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user