Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.
Merged
Prev Previous commit
Next Next commit
⚗️ Use git to push that change
  • Loading branch information
NatoBoram committed Nov 1, 2024
commit b76571e8f198258d764bc72df58d4aa860ad33ac
30 changes: 12 additions & 18 deletions .github/workflows/fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
fix:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -22,21 +19,18 @@ jobs:
cache: pnpm
- run: pnpm install
- run: pnpm run lint:fix
- run: |
git add .
git status

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

[dependabot skip]
skip-empty: true
token: ${{ secrets.GITHUB_TOKEN }}
- 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'

- run: |
git status
git remote add upstream '${{ github.repositoryUrl }}'
git push upstream '${{ github.head_ref }}'
git commit --all --message '🎨 pnpm run lint:fix' --message '[dependabot skip]'
git push
Loading