name: deploy to main on: pull_request: # Sequence of patterns matched against refs/heads branches: - main jobs: Explore-Gitea-Actions: runs-on: home steps: - name: 部署到生产环境 if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.ref == 'refs/heads/main' run: echo "prod"