From 545bd0abea52bd3d79e183518ce75a9760460190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Heleno?= Date: Thu, 17 Oct 2024 11:27:07 +0200 Subject: [PATCH 1/2] ci: use PAT token in order to trigger Docker build --- .github/workflows/release-please.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index aa5f03a..1587611 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -8,9 +8,6 @@ on: jobs: release-please: - permissions: - contents: write - pull-requests: write runs-on: ubuntu-latest outputs: releases_created: ${{ steps.release-please.outputs.releases_created }} @@ -22,7 +19,7 @@ jobs: - uses: googleapis/release-please-action@v4 id: release-please with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT_GITHUB_TOKEN }} upload-release-artifact: needs: release-please From b41afb2e280de739182d1351634cfdea48960213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Heleno?= Date: Thu, 17 Oct 2024 11:28:00 +0200 Subject: [PATCH 2/2] ci: only generate documentation when there is a release --- .github/workflows/publish-javadoc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-javadoc.yaml b/.github/workflows/publish-javadoc.yaml index 9af40ae..d62b04d 100644 --- a/.github/workflows/publish-javadoc.yaml +++ b/.github/workflows/publish-javadoc.yaml @@ -2,8 +2,8 @@ name: "publish-javadoc" on: push: - branches: - - main + tags: + - "v*" jobs: generate-javadoc: