File tree Expand file tree Collapse file tree 1 file changed +35
-13
lines changed Expand file tree Collapse file tree 1 file changed +35
-13
lines changed Original file line number Diff line number Diff line change 91
91
id : access-token
92
92
with :
93
93
permissions : |
94
- secrets: write
94
+ secrets: write
95
95
96
96
- name : Update secret
97
97
run : >-
@@ -181,18 +181,40 @@ build:
181
181
<details ><summary >Click me</summary >
182
182
183
183
``` yaml
184
- - uses : qoomon/actions--access-token@v3
185
- id : access-token
186
- with :
187
- permissions : |
188
- actions: write
189
- app-server : |
190
- url: https://app-server.example.com
191
- # auth:
192
- # type: aws
193
- # roleArn: arn:aws:iam::123456789012:role/# github-actions-access-token-api-access
194
- # region: eu-central-1
195
- # service: lambda
184
+ on :
185
+ workflow_dispatch :
186
+ push :
187
+ branches :
188
+ - main
189
+
190
+ permissions :
191
+ id-token : write
192
+
193
+ jobs :
194
+ build :
195
+ runs-on : ubuntu-latest
196
+ steps :
197
+ - uses : qoomon/actions--access-token@v3
198
+ id : access-token
199
+ with :
200
+ permissions : |
201
+ actions: write
202
+ app-server : |
203
+ url: https://app-server.example.com
204
+ # auth:
205
+ # type: aws
206
+ # roleArn: arn:aws:iam::123456789012:role/# github-actions-access-token-api-access
207
+ # region: eu-central-1
208
+ # service: lambda
209
+
210
+ - name : Trigger workflow
211
+ run : >-
212
+ gh workflow
213
+ run [target workflow].yml
214
+ --field logLevel=debug
215
+ env :
216
+ GITHUB_TOKEN : ${{steps.access-token.outputs.token}}
217
+ # ...
196
218
```
197
219
</details >
198
220
You can’t perform that action at this time.
0 commit comments