diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index ffaaeb5b..19f6107e 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -10,7 +10,7 @@ on: jobs: if_merged: - if: github.event.pull_request.merged == true + if: ${{ github.event.pull_request.state != 'closed' || github.event.pull_request.merged == true }} runs-on: ubuntu-latest steps: - name: setup-go diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 5a21158c..f01c405b 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -1,21 +1,21 @@ name: test on: + pull_request: + types: [opened, reopened, closed, synchronize] + branches: + - master + - v3 + - v4 push: branches: - master - v3 - v4 - pull_request: - types: [opened, reopened, closed] - branches: - - master - - v3 - - v4 jobs: - test: - name: test + if_merged: + if: ${{ github.event.pull_request.state != 'closed' || github.event.pull_request.merged == true }} runs-on: ubuntu-latest steps: - name: setup-go