ci: cleanup documentation publication GH action
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 5 Jul 2024 14:02:54 +0000 (16:02 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 5 Jul 2024 14:02:54 +0000 (16:02 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/release-please.yml

index f70ab97a67fba926b02a79a800a20a850b95d630..9097fa861a6a6175bbb23c71acf994529f9daba7 100644 (file)
@@ -151,9 +151,9 @@ jobs:
           pnpm typedoc
 
       - name: Commit files
-        if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
+        if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
         env:
-          COMMIT_MESSAGE: 'docs: generate documentation'
+          COMMIT_MESSAGE: 'docs: publish documentation'
           COMMIT_AUTHOR: Documentation Bot
           COMMIT_EMAIL: documentation-bot@users.noreply.github.com
         run: |
@@ -164,7 +164,7 @@ jobs:
           git commit -a -m "${{ env.COMMIT_MESSAGE }}"
 
       - name: Push changes
-        if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
+        if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
         uses: CasperWA/push-protected@v2
         with:
           token: ${{ secrets.GH_TOKEN_PROTECTED }}