-
Notifications
You must be signed in to change notification settings - Fork 119
58 lines (48 loc) · 1.45 KB
/
update-lockfiles.yml
File metadata and controls
58 lines (48 loc) · 1.45 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 'Update Lockfiles (Podfile.lock)'
on:
push:
branches:
- main
paths:
- '.github/workflows/update-lockfiles.yml'
pull_request:
paths:
- '.github/workflows/update-lockfiles.yml'
- 'package.json'
- '**/package.json'
permissions:
contents: write
env:
# Opt actions still on Node 20 into the runner's Node 24 instead.
# https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
update-lockfiles:
name: 'Update lockfiles (Podfile.lock)'
if: github.actor == 'dependabot[bot]'
runs-on: macOS-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- uses: ./.github/actions/setup-bun
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
working-directory: example/ios
- name: Install clang-format (required by pre-commit hook)
run: brew install clang-format
- run: |
bun install
cd example
bundle install
bun pods
git add ios/Podfile.lock
cd ..
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