File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -238,3 +238,29 @@ jobs:
238
238
secrets : inherit # pass all secrets (required to access secrets in a called workflow)
239
239
with :
240
240
docs_version : " dev"
241
+
242
+ # After merging a PR, leave a comment on the PR with a link to the new dev build
243
+ notify :
244
+ needs :
245
+ - auto-publish-dev
246
+ if : github.ref == 'refs/heads/main'
247
+ runs-on : " ubuntu-latest"
248
+ steps :
249
+ - uses : actions/github-script@v6
250
+ with :
251
+ script : |
252
+ const body = `Build \
253
+ [${{ needs.auto-publish-dev.outputs.gitlint_version }}](https://pypi.org/project/gitlint/${{ needs.auto-publish-dev.outputs.gitlint_version }}) \
254
+ is now available on PyPI!
255
+
256
+ Install using:
257
+ \`\`\`sh
258
+ pip install gitlint==${{ needs.auto-publish-dev.outputs.gitlint_version }}
259
+ \`\`\`
260
+ `;
261
+ github.rest.issues.createComment({
262
+ issue_number: context.issue.number,
263
+ owner: context.repo.owner,
264
+ repo: context.repo.repo,
265
+ body: body
266
+ });
Original file line number Diff line number Diff line change 18
18
required : true
19
19
type : string
20
20
default : " latest_dev"
21
+ outputs :
22
+ gitlint_version :
23
+ description : " Gitlint version that was published"
24
+ value : ${{ jobs.publish.outputs.gitlint_version }}
21
25
22
26
# Manually trigger a release
23
27
workflow_dispatch :
You can’t perform that action at this time.
0 commit comments