You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(cp-update): make token required to convince users to pass a PAT
* docs(cp-update): fix readme
* docs(cp-update): add correct permissions to readme
Copy file name to clipboardExpand all lines: create-plugin-update/README.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,13 @@ This GitHub Action automates the process of running `create-plugin update` withi
10
10
11
11
## Usage
12
12
13
+
Detailed setup instructions can be found in the [Grafana developer portal](https://grafana.com/developers/plugin-tools/set-up/set-up-github#the-create-plugin-update-workflow).
14
+
13
15
- Add a workflow to your Github repository as in the example below.
14
-
- Set up the necessary secrets. As this action will push to and open a PR in the plugins repository make sure the token you supply has the correct privileges.
16
+
- Set up the necessary secrets. As this action will push to and open a PR in the plugins repostory create a fine-grained personal access token for your repository with `contents: read and write`, `pull requests: read and write` and `workflows: read and write` and pass it to the action.
15
17
16
18
## Workflow example
19
+
17
20
<!-- x-release-please-start-version -->
18
21
19
22
```yaml
@@ -22,28 +25,23 @@ name: Create Plugin Update
22
25
on:
23
26
workflow_dispatch:
24
27
schedule:
25
-
- cron: '0 0 1 * *'# run once a month on the 1st day
26
-
27
-
# To use the default github token with the following elevated permissions make sure to check:
28
-
# **Allow GitHub Actions to create and approve pull requests** in https://github.com/USER_NAME/REPO_NAME/settings/actions.
29
-
# Alternatively create a fine-grained personal access token for your repository with `contents: read and write` and `pull requests: read and write` and pass it to the action.
30
-
31
-
permissions:
32
-
contents: write
33
-
pull-requests: write
28
+
- cron: "0 0 1 * *"# run once a month on the 1st day
0 commit comments