@@ -66,7 +66,6 @@ output of a github-script step. For some workflows, string encoding is preferred
66
66
- uses: actions/github-script@v4
67
67
id: my-script
68
68
with:
69
- github-token: ${{secrets.GITHUB_TOKEN}}
70
69
result-encoding: string
71
70
script: return "I will be string (not JSON) encoded!"
72
71
` ` `
100
99
steps:
101
100
- uses: actions/github-script@v4
102
101
with:
103
- github-token: ${{secrets.GITHUB_TOKEN}}
104
102
script: |
105
103
github.issues.createComment({
106
104
issue_number: context.issue.number,
@@ -123,7 +121,6 @@ jobs:
123
121
steps:
124
122
- uses: actions/github-script@v4
125
123
with:
126
- github-token: ${{secrets.GITHUB_TOKEN}}
127
124
script: |
128
125
github.issues.addLabels({
129
126
issue_number: context.issue.number,
@@ -144,7 +141,6 @@ jobs:
144
141
steps:
145
142
- uses: actions/github-script@v4
146
143
with:
147
- github-token: ${{secrets.GITHUB_TOKEN}}
148
144
script: |
149
145
// Get a list of all issues created by the PR opener
150
146
// See: https://octokit.github.io/rest.js/#pagination
@@ -188,7 +184,6 @@ jobs:
188
184
steps:
189
185
- uses: actions/github-script@v4
190
186
with:
191
- github-token: ${{secrets.GITHUB_TOKEN}}
192
187
script: |
193
188
const diff_url = context.payload.pull_request.diff_url
194
189
const result = await github.request(diff_url)
@@ -213,7 +208,6 @@ jobs:
213
208
steps:
214
209
- uses: actions/github-script@v4
215
210
with:
216
- github-token: ${{secrets.GITHUB_TOKEN}}
217
211
script: |
218
212
const query = ` query($owner:String!, $name:String!, $label:String!) {
219
213
repository(owner:$owner, name:$name){
0 commit comments