From 595c23c4ee4bf6eeebe1253bf33ed09f4e519bb1 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 6 Nov 2024 18:34:08 +0100 Subject: [PATCH] ci: change to the new version of Release Please --- .github/workflows/release-please.yml | 34 ++++++++++++++++------------ 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 231f16fb..af31fba5 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,17 +1,23 @@ - on: - push: - branches: - - develop - name: release-please - jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: GoogleCloudPlatform/release-please-action@v4.1 - with: +name: release-please +on: + push: + branches: + - develop + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: # We can't use GITHUB_TOKEN here because, github actions can't provocate actions # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow # So this is a personnal access token - token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - release-type: python - package-name: openfoodfacts + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + release-type: python + target-branch: develop + package-name: openfoodfacts