From 6be9ff4ee29f130090e1227f1248556b5bed3956 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Sat, 5 Aug 2023 19:55:50 +0200 Subject: [PATCH 1/3] Change how Release please is triggered --- .github/workflows/release-please.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 3fc35e85b0b..923a459d39e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,8 +1,7 @@ name: Run release-please + on: - push: - branches: - - develop + workflow_dispatch: env: RUBY_VERSION: 3.2.0 @@ -11,7 +10,7 @@ env: jobs: release-please: runs-on: ubuntu-latest - if: github.repository_owner == 'openfoodfacts' + if: github.triggering_actor == 'teolemon' || github.triggering_actor == 'stephanegigandet' || github.triggering_actor == 'g123k' || github.triggering_actor == 'monsieurtanuki' ||github.triggering_actor == 'M123-dev' outputs: release_created: ${{ steps.release_please.outputs.release_created }} major: ${{ steps.release_please.outputs.major }} From ff8dbf535c499baee9cf4214e3e2362e599a1c38 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Sat, 5 Aug 2023 20:13:09 +0200 Subject: [PATCH 2/3] Revert "Change how Release please is triggered" This reverts commit 6be9ff4ee29f130090e1227f1248556b5bed3956. --- .github/workflows/release-please.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 923a459d39e..3fc35e85b0b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,7 +1,8 @@ name: Run release-please - on: - workflow_dispatch: + push: + branches: + - develop env: RUBY_VERSION: 3.2.0 @@ -10,7 +11,7 @@ env: jobs: release-please: runs-on: ubuntu-latest - if: github.triggering_actor == 'teolemon' || github.triggering_actor == 'stephanegigandet' || github.triggering_actor == 'g123k' || github.triggering_actor == 'monsieurtanuki' ||github.triggering_actor == 'M123-dev' + if: github.repository_owner == 'openfoodfacts' outputs: release_created: ${{ steps.release_please.outputs.release_created }} major: ${{ steps.release_please.outputs.major }} From 3f86e1876a1d614a34735a4407261f87e07740a0 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Sat, 5 Aug 2023 20:14:27 +0200 Subject: [PATCH 3/3] Apply the changes to the internal action instead --- .github/workflows/internal-release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/internal-release.yml b/.github/workflows/internal-release.yml index c2af4b9ac7b..e4aedec7471 100644 --- a/.github/workflows/internal-release.yml +++ b/.github/workflows/internal-release.yml @@ -1,9 +1,7 @@ name: Create internal releases on: - push: - branches: - - develop - - deploy_from_pr/* + workflow_dispatch: + env: RUBY_VERSION: 3.2.0 @@ -12,7 +10,7 @@ jobs: concurrency: group: release cancel-in-progress: true - if: "!contains(github.event.commits[0].message, 'chore(develop): release') && github.repository_owner == 'openfoodfacts'" + if: github.triggering_actor == 'teolemon' || github.triggering_actor == 'stephanegigandet' || github.triggering_actor == 'g123k' || github.triggering_actor == 'monsieurtanuki' || github.triggering_actor == 'M123-dev' runs-on: ubuntu-latest outputs: VERSION_NAME: ${{ steps.set_output.outputs.VERSION_NAME }}