diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index faa7dcc..c7ea06c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,10 +30,10 @@ jobs: - name: Lint files run: python3 -m ruff check - name: Pretty files - if: ${{ secrets.CI_GPG_PRIVATE_KEY }} + if: ${{ github.event_name != 'pull_request' }} run: python3 -m ruff format - name: Import GPG key - if: ${{ secrets.CI_GPG_PRIVATE_KEY }} + if: ${{ github.event_name != 'pull_request' }} uses: crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.CI_GPG_PRIVATE_KEY }} @@ -41,7 +41,7 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - name: Commit changes - if: ${{ secrets.CI_GPG_PRIVATE_KEY }} + if: ${{ github.event_name != 'pull_request' }} uses: EndBug/add-and-commit@v9 with: commit: -S