Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

👷 actions--create-commit #143

Merged
merged 7 commits into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
permissions:
contents: write

if: github.actor != 'github-actions[bot]'

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -24,18 +26,16 @@ jobs:
cache: pnpm
- run: pnpm install
- run: pnpm run lint:fix
- run: git add .

- id: diff
run: |
if [[ -n $(git status --porcelain) ]]; then
echo 'changes=true' >>"$GITHUB_OUTPUT"
fi
- uses: qoomon/actions--create-commit@v1
id: actions--create-commit
with:
message: |
🎨 pnpm run lint:fix

- if: steps.diff.outputs.changes == 'true'
name: Commit and push
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
[dependabot skip]
skip-empty: true

git commit --all --message '🎨 pnpm run lint:fix' --message '[dependabot skip]'
git push
- if: ${{ steps.actions--create-commit.outputs.commit }}
run: git push