[DEVOPS-XXX] Add checksum to URL to fix B2C redirect issues #169
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: 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 | |
- name: Check if prettier configuration files exists | |
id: prettier-configs | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: ".prettierrc.js,.prettierc.json" | |
- name: Run prettier with configuration files | |
uses: creyD/prettier_action@v4.3 | |
if: steps.prettier-configs.outputs.files_exists == 'true' | |
with: | |
prettier_options: --write . --config ./.prettierrc.js --config ./.prettierrc.json | |
prettier_plugins: ${{ inputs.prettierPlugins }} | |
commit_message: Apply prettier changes | |
github_token: ${{ secrets.PAT_ACTION_CI }} | |
- name: Run prettier | |
uses: creyD/prettier_action@v4.3 | |
if: steps.prettier-configs.outputs.files_exists != 'true' | |
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 |