This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
⬆️ Bump astro from 3.5.5 to 4.1.1 #427
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: Prettify | |
on: [push, pull_request] | |
jobs: | |
prettify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "yarn" | |
- name: Install Dependency | |
run: yarn add -D prettier-plugin-astro | |
- name: Run Prettier | |
run: yarn run format | |
- name: Check Diff | |
id: check_diff | |
run: git diff . || echo "::set-output name=diff::true" | |
- name: Push | |
if: steps.check_diff.outputs.diff == 'true' | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "🎨 Automatic Prettier" | |
git push |