Skip to content

Commit 8ec079a

Browse files
authored
Update README.md
1 parent 08b3253 commit 8ec079a

File tree

1 file changed

+35
-13
lines changed

1 file changed

+35
-13
lines changed

action/README.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
id: access-token
9292
with:
9393
permissions: |
94-
secrets: write
94+
secrets: write
9595
9696
- name: Update secret
9797
run: >-
@@ -181,18 +181,40 @@ build:
181181
<details><summary>Click me</summary>
182182

183183
```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+
# ...
196218
```
197219
</details>
198220

0 commit comments

Comments
 (0)