From 063b95d848a202aee973b8a12ea9d196ae330a12 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Wed, 15 May 2024 12:00:21 -0400 Subject: [PATCH] correct workflow triggers (#2340) * correct workflow triggers * not extract strings --- .github/workflows/audit.yml | 12 ++++++++---- .github/workflows/code-check.yml | 13 ++++++++----- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f699aed8c1..598f3faea1 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -2,11 +2,15 @@ name: Check npm audit and locales on: push: - branches-ignore: - - "main" + branches: + - long_lived/** + - main + - release/** + tags: + - "**" pull_request: - branches-ignore: - - "main" + branches: + - "**" concurrency: group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }} diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 9526936693..f809db93e1 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -1,12 +1,15 @@ name: code-check on: - # We never push directly to 'main', so do not run on it push: - branches-ignore: - - "main" + branches: + - long_lived/** + - main + - release/** + tags: + - "**" pull_request: - branches-ignore: - - "main" + branches: + - "**" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: