Skip to content

Commit 6c2be69

Browse files
committed
Fix metadata printing and event attribute names.
1 parent 919b517 commit 6c2be69

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/labels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ jobs:
77
show-metadata:
88
runs-on: ubuntu-latest
99
steps:
10+
# Use environment variable to print the metadata (cf. https://github.com/actions/runner/issues/1656#issuecomment-1030077729).
1011
- name: Show metadata
11-
run: echo ${{ toJson(github.event) }}
12+
run: echo $JSON
13+
env:
14+
JSON: ${{ toJson(github.event) }}
1215
add-label:
13-
if: ${{ github.event.actor.login != 'tillahoffmann' }}
16+
if: ${{ github.event.user.login != 'tillahoffmann' }}
1417
runs-on: ubuntu-latest
1518
permissions:
1619
issues: write
@@ -20,7 +23,7 @@ jobs:
2023
with:
2124
labels: requires-attention
2225
remove-label:
23-
if: ${{ github.event.actor.login == 'tillahoffmann' }}
26+
if: ${{ github.event.user.login == 'tillahoffmann' }}
2427
runs-on: ubuntu-latest
2528
permissions:
2629
issues: write

0 commit comments

Comments
 (0)