Skip to content

Website: Dedicated page for all survey answers #2434

Website: Dedicated page for all survey answers

Website: Dedicated page for all survey answers #2434

Workflow file for this run

name: Prettify Code
on: pull_request
jobs:
prettify:
name: Prettify
runs-on: ubuntu-latest
# This action only works on the original repository, not on forks
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests, required for prettify
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- name: Initialize repository
uses: ./.github/workflows/actions/init
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_version: "3.3.3"
prettier_plugins: "[email protected] [email protected]"
prettier_options: "--write ./"
github_token: ${{ secrets.WORKFLOW_TOKEN }}