Website: Dedicated page for all survey answers #2436
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |