og-linuxgsm/.github/workflows/action-prettier.yml
Daniel Gibbs 7b5aa0446e
chore(sync): synced file(s) with dgibbs64/repo-sync (#4919)
* chore(sync): synced local '.github/' with remote 'general/.github/'

Synced from dgibbs64/repo-sync@0d089f257a — chore: remove opensuseleap15 exclusion from latest ansible-core (now Python 3.11 / Leap 15.6)

* chore(sync): synced local './' with remote 'bash/'

Synced from dgibbs64/repo-sync@0d089f257a — chore: remove opensuseleap15 exclusion from latest ansible-core (now Python 3.11 / Leap 15.6)
2026-07-19 14:23:26 +01:00

36 lines
811 B
YAML

name: Prettier
on:
workflow_dispatch:
push:
branches:
- "*"
concurrency:
group: prettier-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Prettier and plugins
run: |
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template
- name: Prettify code
uses: creyD/prettier_action@v4.6
with:
prettier_plugins: "prettier-plugin-sh prettier-plugin-jinja-template"
prettier_options: --write .
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: "chore(prettier): format code"