Skip to content

Commit

Permalink
ci: fix incorrect use of if
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Apr 21, 2024
1 parent 6060ad1 commit da005b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ 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 }}
passphrase: ${{ secrets.CI_GPG_PASS }}
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
Expand Down

0 comments on commit da005b2

Please sign in to comment.