chore(deps): update dependency @playwright/test to v1.39.0 #869
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: Code style | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
style-fix: | |
name: Run Prettier and Commit Changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.TAKARO_CI_APP_ID }} | |
private_key: ${{ secrets.TAKARO_CI_APP_PRIV_KEY }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
- run: ./scripts/dev-init.sh | |
- name: Run Prettier | |
run: npm run test:style:fix | |
- name: Check for modifications | |
id: git-diff-check | |
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) | |
- name: Commit and push if changed | |
if: steps.git-diff-check.outputs.modified == 'true' | |
run: | | |
git config --global user.name 'takaro-ci-bot[bot]' | |
git config --global user.email '138661031+takaro-ci-bot[bot]@users.noreply.github.com' | |
git commit -am "fix: code style" | |
git push |