From 62ecf143a1965301eff60c73e1a8caafef731a83 Mon Sep 17 00:00:00 2001 From: Josh Chester Date: Sat, 24 Jan 2026 12:47:37 -0600 Subject: [PATCH] Tweak action triggers --- .gitea/workflows/build.yml | 6 +++++- .gitea/workflows/linting.yml | 21 +++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7fce155..4ee582f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,6 +1,10 @@ name: Build with gradle run-name: Building for ${{ gitea.actor }} -on: [pull_request] +on: + pull_request: + push: + branches: + - 'main' jobs: Build-with-gradle: diff --git a/.gitea/workflows/linting.yml b/.gitea/workflows/linting.yml index a2fc70b..75a4779 100644 --- a/.gitea/workflows/linting.yml +++ b/.gitea/workflows/linting.yml @@ -1,10 +1,15 @@ name: Java Google Checkstyle +run-name: Linting for ${{ gitea.actor }} permissions: contents: read pull-request: write -on: [pull_request] +on: + pull_request: + push: + branches: + - 'main' jobs: checkstyle: @@ -22,13 +27,6 @@ jobs: java-version: '22' distribution: 'zulu' - - name: 'Find changed Java files' - id: changed-files - uses: tj-actions/changed-files@v44 - with: - files: | - **.java - - name: 'Setup Reviewdog' uses: reviewdog/action-setup@v1 with: @@ -37,6 +35,13 @@ jobs: - name: 'Pull code' uses: actions/checkout@v6 + - name: 'Find changed Java files' + id: changed-files + uses: tj-actions/changed-files@v44 + with: + files: | + **.java + - name: 'Run Checkstyle with Reviewdog' if: steps.changed-files.outputs.any_changed == 'true' run: |