-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 984 Bytes
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Pull Request'
on:
pull_request:
branches:
- develop
- main
permissions:
contents: write
jobs:
update-bun-lockb:
name: "Update bun.lockb"
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- run: |
bun install --yarn --ignore-scripts
git add bun.lockb
git config --global user.name 'dependabot[bot]'
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
git commit --amend --no-edit
git push --force --no-verify
test-build:
needs: update-bun-lockb
if: always()
uses: ./.github/workflows/test-build.yaml
permissions:
contents: write
e2e:
needs: test-build
if: always()
uses: ./.github/workflows/e2e.yaml
with:
smoke: true