echo github context using python
This commit is contained in:
parent
00032619bd
commit
dfad1352ad
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -6,10 +6,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
# - name: Dump GitHub context
|
- name: Dump GitHub context
|
||||||
# env:
|
env:
|
||||||
# GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
# run: echo "$GITHUB_CONTEXT"
|
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
|
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
|
||||||
run: exit 1
|
run: exit 1
|
||||||
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')
|
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user