File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ jobs:
126
126
- rubygems-release
127
127
env :
128
128
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
129
- GH_REPO : ${{ github.repository }}
130
129
GEM_VERSION : ${{ needs.verify-checks.outputs.version }}
131
130
permissions :
132
131
contents : write
@@ -139,4 +138,27 @@ jobs:
139
138
gh release upload "v${GEM_VERSION}" *.gem --clobber
140
139
gh release edit "v${GEM_VERSION}" --draft=false
141
140
141
+ update-document :
142
+ if : github.ref_name == 'master'
143
+ runs-on : ubuntu-24.04
144
+ needs :
145
+ - verify-checks
146
+ - rubygems-release
147
+ env :
148
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149
+ GEM_VERSION : ${{ needs.verify-checks.outputs.version }}
150
+ steps :
151
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
152
+ with :
153
+ fetch-depth : 0
154
+ - run : |
155
+ JOB_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}"
156
+
157
+ gh pr create \
158
+ --base release \
159
+ --head master \
160
+ --title "Update document v${GEM_VERSION}" \
161
+ --body "This is an auto-generated PR to update documentation from [here](${JOB_URL}). Please merge (with a merge commit) when ready." \
162
+ --label "docs"
163
+
142
164
# TODO: Close existing milestone and create next milestone
You can’t perform that action at this time.
0 commit comments