File tree Expand file tree Collapse file tree 2 files changed +33
-19
lines changed Expand file tree Collapse file tree 2 files changed +33
-19
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,32 @@ jobs:
17
17
THUMBNAIL_URL : ${{ vars.THUMBNAIL_URL }}
18
18
19
19
steps :
20
- - name : Checkout code
21
- uses : actions/checkout@v3
22
-
23
- - name : Set up Bun
24
- run : |
25
- curl -fsSL https://bun.sh/install | bash
26
- echo "${HOME}/.bun/bin" >> $GITHUB_PATH
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Install bun
24
+ uses : oven-sh/setup-bun@v2
27
25
28
26
- name : Install dependencies
29
27
run : bun install
30
28
31
- - name : Run linter
32
- run : bun run lint
29
+ - name : Install dependencies # (assuming your project has dependencies)
30
+ run : bun install # You can use npm/yarn/pnpm instead if you prefer
31
+
32
+ - name : Check for changes
33
+ id : verify-changed-files
34
+ run : |
35
+ if [ -n "$(git status --porcelain)" ]; then
36
+ echo "changed=true" >> $GITHUB_OUTPUT
37
+ else
38
+ echo "changed=false" >> $GITHUB_OUTPUT
39
+ fi
40
+
41
+ - name : Commit linter changes
42
+ if : steps.verify-changed-files.outputs.changed == 'true'
43
+ run : |
44
+ git config --local user.email "[email protected] "
45
+ git config --local user.name "GitHub Action"
46
+ git add .
47
+ git commit -m "🔧 Auto-fix: ESLint formatting and fixes"
48
+ git push
Original file line number Diff line number Diff line change @@ -15,16 +15,14 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - name : Checkout code
19
- uses : actions/checkout@v3
20
-
21
- - name : Set up Bun
22
- run : |
23
- curl -fsSL https://bun.sh/install | bash
24
- echo "${HOME}/.bun/bin" >> $GITHUB_PATH
25
-
26
- - name : Install dependencies
27
- run : bun install
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install bun
22
+ uses : oven-sh/setup-bun@v2
23
+
24
+ - name : Install dependencies # (assuming your project has dependencies)
25
+ run : bun install # You can use npm/yarn/pnpm instead if you prefer
28
26
29
27
- name : Run tests
30
28
run : bun run test
You can’t perform that action at this time.
0 commit comments