echo github context using python

This commit is contained in:
Roy Hooper 2019-10-03 19:49:12 -04:00
parent 00032619bd
commit dfad1352ad
1 changed files with 4 additions and 4 deletions

View File

@ -6,10 +6,10 @@ jobs:
test:
runs-on: ubuntu-16.04
steps:
# - name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: echo "$GITHUB_CONTEXT"
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: python -c "import os; print os.environ['GITHUB_CONTEXT']"
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
run: exit 1
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')