diff --git a/actions/example-push/.forgejo/workflows/test.yml b/actions/example-push/.forgejo/workflows/test.yml new file mode 100644 index 0000000..323f2f8 --- /dev/null +++ b/actions/example-push/.forgejo/workflows/test.yml @@ -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 diff --git a/actions/run.sh b/actions/run.sh index 60c6eed..84d7707 100755 --- a/actions/run.sh +++ b/actions/run.sh @@ -35,7 +35,7 @@ function examples_v1_20() { function examples_v1_21() { # keep "cron" last otherwise it will linger and pollute the following runs - echo 'echo push-cancel artifacts service checkout pull-request container expression local-action context docker-action if if-fail cron' + echo 'echo push push-cancel artifacts service checkout pull-request container expression local-action context docker-action if if-fail cron' } function examples_v1_22() {