Skip to content

Allow defining environmen variables in config #24

Allow defining environmen variables in config

Allow defining environmen variables in config #24

Workflow file for this run

name: dry run prettier
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --check **/*.{js,mjs}
dry: True
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}