Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

update: modify the github workflow #1

update: modify the github workflow

update: modify the github workflow #1

name: quiz-game (develop)
on:
push:
branches:
- develop
pull_request:
branches:
- develop
permissions:
checks: write
contents: write
jobs:
clean:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Install Dependencies
run: |
yarn install --frozen-lockfile
- name: Run Prettier
run: |
npm run format
- name: Save Change
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git diff-index --quiet HEAD || (git commit -a -m'[Bot] update: apply changes' && git push -f) || echo "No changes to commit"