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
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,21 +21,21 @@ npm i -S probot-actions-adapter
21
21
22
22
1. Add an `action.js` to your Probot project, like [the one shown below](#example-actionjs)
23
23
1. Add an `action.yml` to your Probot project, like [the one shown below](#example-actionyml)
24
-
1._Vendor in_ your `node_modules`, as [recommended by the official Actions documentation](https://help.github.com/en/articles/creating-a-javascript-action#commit-tag-and-push-your-action-to-github)
24
+
1._Vendor in_ your `node_modules`, as [recommended by the official Actions documentation](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github)
25
25
1. Optional, but recommended, update your project's README with an example workflow showing how to consume your action
26
26
27
27
### Example `action.js`
28
28
29
29
```javascript
30
30
// Require the adapter
31
-
constadapt=require('probot-actions-adapter');
31
+
construnProbot=require('probot-actions-adapter');
32
32
33
33
// Require your Probot app's entrypoint, usually this is just index.js
34
-
constprobot=require('./index');
34
+
constapp=require('./index');
35
35
36
36
// Adapt the Probot app for Actions
37
37
// This also acts as the main entrypoint for the Action
38
-
adapt(probot);
38
+
runProbot(app);
39
39
```
40
40
41
41
### Example `action.yml`
@@ -48,11 +48,11 @@ runs:
48
48
main: 'action.js'
49
49
```
50
50
51
-
See [the documentation](https://help.github.com/en/articles/metadata-syntax-for-github-actions) for `action.yml` syntax details.
51
+
See [the documentation](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions) for `action.yml` syntax details.
52
52
53
53
## Authentication
54
54
55
-
Authentication is via [the `GITHUB_TOKEN` secret _automatically_ provided by GitHub](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token), which should be exposed as an environment variable, `GITHUB_TOKEN`. This can be achieved by including the appropriate [`env`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#env), [`jobs.<job_id>.env`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idenv), or [`jobs.<job_id>.steps.env`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsenv) value in your workflow file.
55
+
Authentication is via [the `GITHUB_TOKEN` secret _automatically_ provided by GitHub](https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token), which should be exposed as an environment variable, `GITHUB_TOKEN`. This can be achieved by including the appropriate [`env`](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#env), [`jobs.<job_id>.env`](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idenv), or [`jobs.<job_id>.steps.env`](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsenv) value in your workflow file.
56
56
57
57
### Example via `jobs.<job_id>.steps.env`
58
58
@@ -74,7 +74,7 @@ This adapter is designed to work well with Probot apps that are essentially stat
74
74
75
75
A few other limitations exist:
76
76
77
-
1. The adapter will _only_ work for Probot apps that receive webhook events that Actions also receives: https://help.github.com/en/articles/events-that-trigger-workflows
78
-
1. The adapter will _only_ work for Probot apps with a permissions set that is less than, or equivalent to the permission set attached to the `GITHUB_TOKEN`: https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
77
+
1. The adapter will _only_ work for Probot apps that receive webhook events that Actions also receives: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
78
+
1. The adapter will _only_ work for Probot apps with a permissions set that is less than, or equivalent to the permission set attached to the `GITHUB_TOKEN`: https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#token-permissions
0 commit comments