Skip to content

Bump peter-evans/create-pull-request from 6 to 7 #6

Bump peter-evans/create-pull-request from 6 to 7

Bump peter-evans/create-pull-request from 6 to 7 #6

Workflow file for this run

name: Prettier
on:
push:
branches: [main, master]
pull_request:
types: [opened, reopened, synchronize]
permissions: write-all
jobs:
prettier:
if: "!contains(github.actor, 'win11bot')" # Skips if the bot triggered the event
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Run Commands
run: |
npx prettier --write .
git config --global user.name "win11bot"
git config --global user.email "[email protected]"
git add .
set +e
git status | grep modified
if [ $? -eq 0 ]
then
set -e
git commit -m "Prettier" -m "skip actions"
git push
else
set -e
echo "No changes since last run"
fi