From 1fe863c772f24d0f378cbca5a4203315a2165f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= <93934272+Stefan-Ethernal@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:49:51 +0100 Subject: [PATCH] Change github workflows triggers (#75) * Run linter analysis only when pushed to the develop and main branches and on each pr trigger * Run build and testing when pushed to main and develop branches --- .github/workflows/ci.yml | 6 +++++- .github/workflows/lint.yml | 12 +++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a8b89f510..237a0631b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,12 @@ --- name: CI on: # yamllint disable-line rule:truthy - workflow_dispatch: {} + push: + branches: + - main + - develop pull_request: + workflow_dispatch: {} jobs: build: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1b88355531..7a70ba0ecb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,16 +3,10 @@ name: Lint on: # yamllint disable-line rule:truthy push: branches: - - "*" - tags-ignore: - - "v*" - paths: - - "**.go" + - main + - develop + pull_request: - types: - - opened - - synchronize - - reopened workflow_call: {} workflow_dispatch: {}