32 lines
789 B
YAML
32 lines
789 B
YAML
name: Continuous Integration (Prettier)
|
|
|
|
# This action works with pull requests and pushes
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
prettier:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# Make sure the actual branch is checked out when running on pull requests
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Prettify code
|
|
run: npm run prettier
|
|
|
|
- name: Commit Prettier Code
|
|
uses: stefanzweifel/git-auto-commit-action@v4.14.1
|
|
with:
|
|
commit_message: "chore: Prettified Code\n [ci skip]"
|
|
commit_user_name: "cider-chore[bot]"
|
|
commit_user_email: "cider-chore[bot]@users.noreply.github.com"
|
|
|