We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125cbdf commit 44e137eCopy full SHA for 44e137e
.github/workflows/go-live.yml
@@ -0,0 +1,31 @@
1
+name: Go Live
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+permissions:
7
+ contents: write
8
+ pull-requests: write
9
10
+jobs:
11
+ go-live:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
20
+ - name: Create pull request
21
+ env:
22
+ GH_TOKEN: ${{ github.token }}
23
+ run: |
24
+ existing=$(gh pr list --base live --head main --state open --json number --jq '.[0].number')
25
+ if [ -n "$existing" ]; then
26
+ echo "PR #$existing already exists"
27
+ else
28
+ gh pr create --base live --head main \
29
+ --title "Go Live: publish latest API docs" \
30
+ --body "Merge \`main\` into \`live\` to publish the latest API documentation."
31
+ fi
0 commit comments