Skip to content

Commit

Permalink
Merge pull request #298 from sora-xor/duty/disable_sign
Browse files Browse the repository at this point in the history
[duty]: revert old prettier
  • Loading branch information
f33r0 authored Jul 19, 2024
2 parents f561416 + 18f8dc3 commit 49d4cd4
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/pull-request-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- develop

jobs:
prettier:
runs-on: ubuntu-22.04
Expand All @@ -21,36 +20,20 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
node-version: '14'

- name: Install global npm package
run: npm install -g npm@8

- name: Install Prettier
run: npm install -g prettier
- run: npm ci
- run: npm run format

- name: "Import GPG key"
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
- name: Prettify code
uses: creyD/[email protected]
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true

- name: Configure Git to use PAT
run: |
git config --global url.https://${{ secrets.GH_TOKEN }}@github.com/.insteadOf https://github.com/
prettier_options: --write src/*.md
only_changed: True
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
commit_author: "${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>"
commit_user_name: ${{ steps.import-gpg.outputs.name }}
commit_user_email: ${{ steps.import-gpg.outputs.email }}
commit_options: '-S'
branch: ${{ github.head_ref }}

0 comments on commit 49d4cd4

Please sign in to comment.