fix(app-shell): to only events for flag variations #3834
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: Documentation content check | |
# The `vale` GitHub action does not work on PR events so this is triggered on all pushes. | |
on: [pull_request] | |
jobs: | |
writing_style: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node (uses version in .nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Download .vale.ini and style rules from @commercetools-docs/writing-style | |
run: | | |
package_version=$(node -e "console.log(require('./package.json').dependencies['$PACKAGE_NAME'])") | |
echo "Removing package.json and pnpm-lock.yaml to avoid installation issues" | |
rm package.json pnpm-lock.yaml | |
echo "Installing $PACKAGE_NAME@$package_version" | |
npm install --no-save "$PACKAGE_NAME@$package_version" | |
env: | |
PACKAGE_NAME: '@commercetools-docs/writing-style' | |
- name: Check content (generates GitHub comments via `reviewdog`) | |
uses: errata-ai/vale-action@reviewdog | |
with: | |
version: 2.18.0 | |
files: '["website-custom-views/src"]' | |
reporter: github-pr-review | |
filter_mode: diff_context | |
fail_on_error: true | |
vale_flags: '--config=node_modules/@commercetools-docs/writing-style/.vale.ini' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
debug: true |