Skip to content

Commit

Permalink
Merge pull request #145 from MichaelDeBoey/patch-1
Browse files Browse the repository at this point in the history
docs: remove `github-token` usage from examples
  • Loading branch information
joshmgross committed Jun 10, 2021
2 parents a3e7071 + cec0870 commit c32ce14
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Expand Up @@ -66,7 +66,6 @@ output of a github-script step. For some workflows, string encoding is preferred
- uses: actions/github-script@v4
id: my-script
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
script: return "I will be string (not JSON) encoded!"
```
Expand Down Expand Up @@ -100,7 +99,6 @@ jobs:
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
Expand All @@ -123,7 +121,6 @@ jobs:
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
Expand All @@ -144,7 +141,6 @@ jobs:
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
// Get a list of all issues created by the PR opener
// See: https://octokit.github.io/rest.js/#pagination
Expand Down Expand Up @@ -188,7 +184,6 @@ jobs:
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const diff_url = context.payload.pull_request.diff_url
const result = await github.request(diff_url)
Expand All @@ -213,7 +208,6 @@ jobs:
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const query = `query($owner:String!, $name:String!, $label:String!) {
repository(owner:$owner, name:$name){
Expand Down

0 comments on commit c32ce14

Please sign in to comment.