Skip to content

[DEVOPS-332] Ignore backticks in pull request descriptions in ephemeral deployments workflow #167

[DEVOPS-332] Ignore backticks in pull request descriptions in ephemeral deployments workflow

[DEVOPS-332] Ignore backticks in pull request descriptions in ephemeral deployments workflow #167

Workflow file for this run

name: Simple Linter and Formatter
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_call:
inputs:
runPrettier:
default: true
type: boolean
prettierPlugins:
description: Install Prettier plugins, i.e. '@prettier/plugin-php @prettier/plugin-other'
type: string
secrets:
PAT_ACTION_CI:
required: true
jobs:
prettier:
name: Prettier Check
if: ${{ inputs.runPrettier }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_ACTION_CI }}
ref: ${{ github.head_ref }}
- if: ${{ inputs.prettierPlugins }}
run: yarn install
- uses: creyD/prettier_action@v4.3
with:
prettier_options: --write .
prettier_plugins: ${{ inputs.prettierPlugins }}
commit_message: Apply prettier changes
github_token: ${{ secrets.PAT_ACTION_CI }}
lint-workflows:
name: Workflow linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Lint workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color -ignore "SC2086" -ignore "SC2129"
shell: bash