end-to-end/.forgejo/workflows/pr.yml
Earl Warren 44f96d9a49
All checks were successful
/ info (pull_request) Successful in 1s
/ actions (pull_request) Successful in 38s
run on a Forgejo binary
2024-03-02 22:27:00 +08:00

40 lines
861 B
YAML

on:
pull_request:
jobs:
info:
runs-on: docker
container:
image: node:20-bookworm
steps:
- name: event
run: |
cat <<'EOF'
${{ toJSON(github.event) }}
EOF
actions:
runs-on: self-hosted
container:
image: node:20-bookworm
steps:
- uses: actions/checkout@v4
- uses: https://code.forgejo.org/actions/setup-forgejo@v2
with:
install-only: true
- shell: bash
run: |
set -x
forgejo-binary.sh ensure_user forgejo
export DIR=$(mktemp -d)
chown forgejo $DIR /srv
if test -f forgejo/binary-url ; then
su -c "actions/run.sh $(cat forgejo/binary-url) unknown_full_version v7_0" forgejo
else
echo "forgejo/binary-url does not exist, do nothing"
fi