From 4288bf1d39b1a567a3ae67f675e786a75a203efd Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sun, 25 May 2025 15:14:14 +0200 Subject: [PATCH] same triggers (push, PRs) for js, mega-linter, sonar --- .github/workflows/js.yml | 3 +++ .github/workflows/mega-linter.yml | 10 ++-------- .github/workflows/sonar.yml | 4 +--- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 2b4e383..2f201ff 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -1,7 +1,10 @@ name: "JS: deps, lint, tests" +# Run on push in any branch and changes in PRs. on: push: +pull_request: + types: [opened, synchronize, reopened] jobs: build: diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 5f1c176..9ffe049 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -5,17 +5,11 @@ --- name: MegaLinter -# Trigger mega-linter at every push. Action will also be visible from -# Pull Requests to main +# Run on push in any branch and changes in PRs. on: - # Comment this line to trigger action only on pull-requests - # (not recommended if you don't pay for GH Actions) push: - pull_request: - branches: - - main - - dev + types: [opened, synchronize, reopened] # Comment env block if you do not want to apply fixes env: diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 41ae4de..66e0037 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -1,10 +1,8 @@ name: Sonar +# Run on push in any branch and changes in PRs. on: - # Trigger analysis when pushing in main or pull requests, and when creating a pull request. push: - branches: - - main pull_request: types: [opened, synchronize, reopened]