actions/example-cron: verify the type of the event
This commit is contained in:
parent
4879daf24a
commit
5cdebe65db
2 changed files with 13 additions and 0 deletions
|
@ -12,3 +12,11 @@ jobs:
|
|||
steps:
|
||||
- run: |
|
||||
touch /srv/example/cron-volume/DONE
|
||||
|
||||
- name: save context
|
||||
run: |
|
||||
d=/srv/example/cron/contexts/$GITHUB_EVENT_NAME
|
||||
mkdir -p $d
|
||||
cat > $d/github <<'EOF'
|
||||
${{ toJSON(github) }}
|
||||
EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue