Skip to content

Commit f4d95b6

Browse files
committed
chore: remove automatic commit and push steps from lint workflow
1 parent 5c2e59f commit f4d95b6

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,3 @@ jobs:
3434

3535
- name: Run linter
3636
run: bun run lint
37-
38-
- name: Check for changes
39-
id: verify-changed-files
40-
run: |
41-
if [ -n "$(git status --porcelain)" ]; then
42-
echo "changed=true" >> $GITHUB_OUTPUT
43-
else
44-
echo "changed=false" >> $GITHUB_OUTPUT
45-
fi
46-
47-
- name: Commit linter changes
48-
if: steps.verify-changed-files.outputs.changed == 'true'
49-
run: |
50-
git config --local user.email "[email protected]"
51-
git config --local user.name "GitHub Action"
52-
# Ensure we're on the correct branch
53-
if [ "${{ github.event_name }}" = "pull_request" ]; then
54-
BRANCH_NAME="${{ github.head_ref }}"
55-
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
56-
else
57-
BRANCH_NAME="${{ github.ref_name }}"
58-
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
59-
fi
60-
git add .
61-
git commit -m "🔧 Auto-fix: ESLint formatting and fixes"
62-
git push origin $BRANCH_NAME

0 commit comments

Comments
 (0)