From 033c1f6a92431ec97e970b3ccf48d86b3a0c3662 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sat, 25 Apr 2026 15:36:51 +0300 Subject: [PATCH] ci: add workflow_dispatch and skip lint/test on release commits Release-bump commits don't change code that affects lint/tests, and release.yml already runs in parallel. Manual dispatch lets us re-run on demand if needed. --- .gitea/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index ba0e5a7..caecda4 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -5,9 +5,15 @@ on: branches: [master] pull_request: branches: [master] + # Allow manual runs (e.g. to validate after a release commit was skipped). + workflow_dispatch: jobs: test: + # Skip release-publishing commits — version bumps don't affect lint/tests + # and the release.yml pipeline is already running. PRs and manual dispatch + # always run. + if: ${{ github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore: release') }} runs-on: ubuntu-latest steps: - name: Checkout