Ver código fonte

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

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 3 anos atrás
pai
commit
3b7f5ffc6b
1 arquivos alterados com 23 adições e 0 exclusões
  1. 23 0
      .github/workflows/dispatch-release.yml

+ 23 - 0
.github/workflows/dispatch-release.yml

@@ -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 }},
+              },
+            })