From 764f6d5457fe06b4b93cad1874134ef2bdfccb19 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sat, 10 Aug 2024 08:42:45 +0200 Subject: [PATCH] CI: Run pipeline only on master branch and pull requests To avoid double runs when pushing on open pull requests. --- .github/workflows/source-gem.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/source-gem.yml b/.github/workflows/source-gem.yml index 32a34a7f2..fb32e035b 100644 --- a/.github/workflows/source-gem.yml +++ b/.github/workflows/source-gem.yml @@ -1,11 +1,21 @@ name: Source gem +name: CI on: - push: - pull_request: workflow_dispatch: schedule: - cron: "0 5 * * 3" # At 05:00 on Wednesday # https://crontab.guru/#0_5_*_*_3 + push: + branches: + - master + tags: + - "*.*.*" + pull_request: + types: [opened, synchronize] + branches: + - "*" +permissions: + contents: read jobs: job_build_gem: