Skip to content

Commit dfad135

Browse files
committed
echo github context using python
1 parent 0003261 commit dfad135

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
test:
77
runs-on: ubuntu-16.04
88
steps:
9-
# - name: Dump GitHub context
10-
# env:
11-
# GITHUB_CONTEXT: ${{ toJson(github) }}
12-
# run: echo "$GITHUB_CONTEXT"
9+
- name: Dump GitHub context
10+
env:
11+
GITHUB_CONTEXT: ${{ toJson(github) }}
12+
run: python -c "import os; print os.environ['GITHUB_CONTEXT']"
1313
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
1414
run: exit 1
1515
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')

0 commit comments

Comments
 (0)