We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 131366a commit 54f7c73Copy full SHA for 54f7c73
.github/workflows/lint.yml
@@ -21,6 +21,7 @@ jobs:
21
uses: actions/checkout@v4
22
with:
23
token: ${{ secrets.GITHUB_TOKEN }}
24
+ fetch-depth: 0
25
26
- name: Install bun
27
uses: oven-sh/setup-bun@v2
@@ -45,6 +46,14 @@ jobs:
45
46
run: |
47
git config --local user.email "[email protected]"
48
git config --local user.name "GitHub Action"
49
+ # Ensure we're on the correct branch
50
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
51
+ BRANCH_NAME="pr-${{ github.event.number }}"
52
+ git checkout -b $BRANCH_NAME
53
+ else
54
+ BRANCH_NAME="${{ github.ref_name }}"
55
+ git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
56
+ fi
57
git add .
58
git commit -m "🔧 Auto-fix: ESLint formatting and fixes"
- git push
59
+ git push origin $BRANCH_NAME
0 commit comments