From c8b56e1f7cb1853db74589a00ac16868062248d0 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:29:13 +0100 Subject: [PATCH 1/3] ci: run on PR and push to non main branch --- .gitea/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3a04e93..419c4cf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,11 +2,11 @@ name: Build'n check run-name: Performing Typst compilation on: pull_request: - types: - - opened - - synchronize branches: - main + push: + branches-ignore: + - main jobs: run-ci-linux: runs-on: ubuntu-latest -- 2.40.1 From e173f87b61aa1c0246aab0cd0a2e6500d9176e25 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:30:24 +0100 Subject: [PATCH 2/3] ci: run on PR to main --- .gitea/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 419c4cf..56ce55a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,9 +4,6 @@ on: pull_request: branches: - main - push: - branches-ignore: - - main jobs: run-ci-linux: runs-on: ubuntu-latest -- 2.40.1 From ab286793a85c27f573c0ac04289be91fbf19805c Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:32:56 +0100 Subject: [PATCH 3/3] ci: run either on OR or push but only when Run-Checks is specified --- .gitea/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 56ce55a..3834a8a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,6 +4,10 @@ on: pull_request: branches: - main + push: + branches-ignore: + - main + jobs: run-ci-linux: runs-on: ubuntu-latest @@ -11,7 +15,8 @@ jobs: # push with commit containing "Run-Checks" if: > (contains(github.event.head_commit.message, 'Run-Checks') && - github.event_name == 'push') + github.event_name == 'push') || + github.event_name == 'pull_request' steps: - name: Check out repository code uses: actions/checkout@v3 -- 2.40.1