Skip to content

Commit 4fb9de3

Browse files
authored
chore(ci): fix workflows (#130)
1 parent d1e357f commit 4fb9de3

File tree

4 files changed

+14
-106
lines changed

4 files changed

+14
-106
lines changed

.github/workflows/audit-fix.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/auto-approve-merge.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: npm ci
2626

27-
- name: Lint
27+
- name: Format
2828
run: npx biome ci .
2929

3030
lint:
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
1-
name: Dependabot Auto-merge
1+
name: Auto merge Dependabot pull requests
22

33
on:
4-
pull_request:
5-
branches: ["main"]
4+
pull_request_target:
5+
types:
6+
- labeled
7+
- opened
8+
- synchronize
9+
- reopened
10+
- ready_for_review
611

712
permissions:
813
contents: write
914
pull-requests: write
1015

1116
jobs:
1217
auto-merge:
13-
name: Auto-merge dependabot pull requests
18+
name: Auto merge Dependabot pull requests
1419
runs-on: ubuntu-latest
1520
if: github.actor == 'dependabot[bot]'
1621
steps:
1722
- name: Approve
18-
run: gh pr review "$PR_URL" --approve --comment --body "Auto-approve Dependabot pull requests"
23+
run: gh pr review "$PR_NUMBER" --approve
1924
env:
20-
PR_URL: ${{ github.event.pull_request.html_url }}
25+
PR_NUMBER: ${{ github.event.number }}
2126
GH_TOKEN: ${{ secrets.LOCALSTACK_BOT_TOKEN }}
2227
- name: Enable auto-merge
23-
run: gh pr merge "$PR_URL" --auto --squash
28+
run: gh pr merge "$PR_NUMBER" --auto --squash
2429
env:
25-
PR_URL: ${{ github.event.pull_request.html_url }}
30+
PR_NUMBER: ${{ github.event.number }}
2631
GH_TOKEN: ${{ secrets.LOCALSTACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)