From 9f203592fd35bb275ba878ab94471d4bd0ad1a47 Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Wed, 23 Oct 2024 10:46:38 +0200 Subject: [PATCH] fix: changelog action --- .github/workflows/ci_cd.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index c5608142..38993af5 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -45,11 +45,12 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: ansys/actions/doc-changelog@v8 - with: - token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} - bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} - bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} + - uses: ansys/actions/doc-changelog@v8 + if: ${{ github.event_name == 'pull_request '}} + with: + token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} + bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} code-style: name: Code style