Skip to content

Commit 83bf818

Browse files
committed
🧪 Make a draft based plugin bump PR CI trigger
Normally, PRs/commits published using the default GitHub Actions CI/CD API token are not propagated to any integrations. This patch marks the plugin update PR as a draft and leaves a comment asking the maintainers to mark it as ready for review in order to actually trigger a CI run. This idea is found in GitHub's own repos: * github/codeql-action#2263 (comment) * https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41 * github/codeql-action#1868 * github/codeql-action#679
1 parent f426c0b commit 83bf818

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/update-plugin-list.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
run: python scripts/update-plugin-list.py
4747

4848
- name: Create Pull Request
49+
id: pr
4950
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
5051
with:
5152
commit-message: '[automated] Update plugin list'
@@ -55,3 +56,13 @@ jobs:
5556
branch-suffix: short-commit-hash
5657
title: '[automated] Update plugin list'
5758
body: '[automated] Update plugin list'
59+
draft: true
60+
61+
- name: Instruct the maintainers to trigger CI by undrafting the PR
62+
env:
63+
GITHUB_TOKEN: ${{ github.token }}
64+
run: >-
65+
gh pr comment
66+
--body 'Please mark the PR as ready for review to trigger PR checks.'
67+
--repo '${{ github.repository }}'
68+
'${{ steps.pr.outputs.pull-request-number }}'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy