From 7eb8ff5fa8fba20efe7069c43e2dad0cf0277ba8 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sun, 5 Feb 2023 00:11:16 -0500 Subject: [PATCH] ci: run on push in `main` only --- .github/workflows/commit-linter.yml | 7 +++++-- .github/workflows/devcontainer-checker.yml | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/commit-linter.yml b/.github/workflows/commit-linter.yml index 5205486..70b6d7a 100644 --- a/.github/workflows/commit-linter.yml +++ b/.github/workflows/commit-linter.yml @@ -2,11 +2,14 @@ name: Commit Linter on: - pull_request: - types: [opened, reopened] push: branches: - main + pull_request: + types: + - opened + - reopened + - synchronize permissions: # added using https://github.com/step-security/secure-workflows contents: read diff --git a/.github/workflows/devcontainer-checker.yml b/.github/workflows/devcontainer-checker.yml index 52993e9..550c394 100644 --- a/.github/workflows/devcontainer-checker.yml +++ b/.github/workflows/devcontainer-checker.yml @@ -3,14 +3,17 @@ name: "Dev Container Checker" on: workflow_dispatch: - pull_request: - types: [opened, reopened] + push: paths: - ".devcontainer/**" - ".github/workflows/devcontainer-checker.yml" branches: - main - push: + pull_request: + types: + - opened + - reopened + - synchronize paths: - ".devcontainer/**" - ".github/workflows/devcontainer-checker.yml"