message: i18n-update updates
diff: @@ -2,13 +2,10 @@ name: i18n-update
  on:
  pull_request:
  + types: [opened, synchronize, reopened]
  paths:
  - 'config/i18n.json'
  - push:
  - branches:
  - - "master"
  - paths:
  - - 'config/i18n.json'
  + - 'src/locale/dim.json'
  jobs:
  i18n-update:
  @@ -17,18 +14,13 @@ jobs:
  steps:
  - uses: actions/checkout@v2
  with:
  - ref: ${{ github.head_ref }}
  + fetch-depth: 3
  - - name: Cache node_modules
  - uses: actions/cache@v2
  - env:
  - cache-name: cache-node_modules
  + - name: Setup Node
  + uses: actions/setup-node@v2
  with:
  - path: node_modules
  - key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('yarn.lock')}}
  - restore-keys: |
  - ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('yarn.lock')}}
  - ${{ runner.os }}-${{ env.cache-name }}-
  + node-version: 16.x
  + cache: yarn
  - name: Install
  run: yarn install --frozen-lockfile --prefer-offline
  @@ -36,6 +28,17 @@ jobs:
  - name: yarn i18n
  run: yarn i18n
  - - uses: stefanzweifel/git-auto-commit-action@v4
  + - name: Check for new files
  + id: data
  + run: echo ::set-output name=porcelain::"$(git status --porcelain)"
  +
  + - name: Please run `yarn i18n`
  + if: steps.data.outputs.porcelain
  + uses: github-actions-up-and-running/pr-comment@v1.0.1
  with:
  - commit_message: Apply i18n updates
  \ No newline at end of file
  + repo-token: ${{ secrets.GITHUB_TOKEN }}
  + message: Please run `yarn i18n`
  +
  + - name: Fail the Build
  + if: steps.data.outputs.porcelain
  + uses: cutenode/action-always-fail@v1.0.0
  