6
All checks were successful
deploy to dev / Explore-Gitea-Actions (push) Successful in 1s

This commit is contained in:
MYJ 2025-02-26 21:18:42 +08:00
parent 007854850a
commit b98db8dcc7
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: home runs-on: home
steps: steps:
- run: echo "event_name=${{ gitea.event_name }}merged=${{ gitea.event.pull_request.merged }}gitea.ref=${{ gitea.ref }}"
- name: 部署到测试环境 - name: 部署到测试环境
if: github.ref == 'refs/heads/dev' if: ${{ gitea.ref == 'refs/heads/dev' }}
run: echo "dev" run: echo "dev"

View File

@ -2,7 +2,6 @@ name: deploy to main
on: on:
pull_request: pull_request:
# Sequence of patterns matched against refs/heads
branches: branches:
- main - main
@ -10,6 +9,7 @@ jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: home runs-on: home
steps: steps:
- run: echo "event_name=${{ gitea.event_name }}merged=${{ gitea.event.pull_request.merged }}gitea.ref=${{ gitea.ref }}"
- name: 部署到生产环境 - name: 部署到生产环境
if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.ref == 'refs/heads/main' if: ${{ gitea.event_name == 'pull_request' && gitea.event.pull_request.merged == true && gitea.ref == 'refs/heads/main' }}
run: echo "prod" run: echo "prod"