Skip to content

Commit 0237853

Browse files
authored
custom-status: debug when debugging (#1)
Workaround for actions/github-script#264
1 parent bda69d9 commit 0237853

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/custom-status.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
- name: "Start a status 1"
1717
uses: actions/github-script@v6
1818
with:
19+
debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }}
1920
script: |
20-
github.rest.repos.createCommitStatus({
21+
await github.rest.repos.createCommitStatus({
2122
owner: context.repo.owner,
2223
repo: context.repo.repo,
2324
sha: context.sha,
@@ -29,8 +30,9 @@ jobs:
2930
- name: "Start a status 2"
3031
uses: actions/github-script@v6
3132
with:
33+
debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }}
3234
script: |
33-
github.rest.repos.createCommitStatus({
35+
await github.rest.repos.createCommitStatus({
3436
owner: context.repo.owner,
3537
repo: context.repo.repo,
3638
sha: context.sha,
@@ -45,8 +47,9 @@ jobs:
4547
- name: "Complete a status 2 - override description"
4648
uses: actions/github-script@v6
4749
with:
50+
debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }}
4851
script: |
49-
github.rest.repos.createCommitStatus({
52+
await github.rest.repos.createCommitStatus({
5053
owner: context.repo.owner,
5154
repo: context.repo.repo,
5255
sha: context.sha,
@@ -62,8 +65,9 @@ jobs:
6265
- name: "Complete a status 1 - just finish"
6366
uses: actions/github-script@v6
6467
with:
68+
debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }}
6569
script: |
66-
github.rest.repos.createCommitStatus({
70+
await github.rest.repos.createCommitStatus({
6771
owner: context.repo.owner,
6872
repo: context.repo.repo,
6973
sha: context.sha,

0 commit comments

Comments
 (0)