actions: add example-push

This commit is contained in:
Earl Warren 2024-01-12 17:15:47 +01:00
parent 746826e3e6
commit 465538429e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,21 @@
on:
push:
branches:
- 'mai*'
jobs:
test:
runs-on: docker
container:
image: code.forgejo.org/oci/node:20-bookworm
volumes:
- /srv/example:/srv/example
steps:
- name: save event
run: |
d=/srv/example/pull-request/contexts/$GITHUB_EVENT_NAME
mkdir -p $d
cat > $d/github <<'EOF'
${{ toJSON(github) }}
EOF