on: push: defaults: run: shell: bash env: TZ: Asia/Shanghai jobs: test-timezone: runs-on: ubuntu-amd64 steps: - name: step1 run: | set -x mkdir -p gitea echo '

hello world

' > gitea/index.html npx http-server -p=4251 ./gitea & SERVER_PID=$! sleep 1 # 等待服务器启动 curl -s http://localhost:4251/ kill $SERVER_PID