Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9668fa0

Browse files
committedNov 25, 2024
chore: Add update-lockfiles CI
1 parent 66c0bcd commit 9668fa0

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
 
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 'Update Lockfiles (bun.lockb + Podfile.lock)'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".github/workflows/update-lockfiles.yml"
9+
pull_request:
10+
paths:
11+
- ".github/workflows/update-lockfiles.yml"
12+
- "package.json"
13+
- "**/package.json"
14+
15+
permissions:
16+
contents: write
17+
18+
jobs:
19+
update-lockfiles:
20+
name: "Update lockfiles (bun.lockb + Podfile.lock)"
21+
if: github.actor == 'dependabot[bot]'
22+
runs-on: macOS-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
ref: ${{ github.event.pull_request.head.ref }}
28+
29+
- uses: oven-sh/setup-bun@v2
30+
31+
- name: Setup Ruby (bundle)
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: 2.7.2
35+
bundler-cache: true
36+
working-directory: example/ios
37+
38+
- run: |
39+
bun install
40+
git add bun.lockb
41+
42+
cd example
43+
bun pods
44+
git add ios/Podfile.lock
45+
46+
cd ..
47+
git config --global user.name 'dependabot[bot]'
48+
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
49+
git commit --amend --no-edit
50+
git push --force

0 commit comments

Comments
 (0)
Please sign in to comment.