File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 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 "action@github.com"
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
You can’t perform that action at this time.
0 commit comments