-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.16 KB
/
Dependabot.yml
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
name: Dependabot update commit
on:
pull_request:
paths:
- 'Submodule/**'
permissions:
contents: write
pull-requests: write
jobs:
Sync:
if: github.actor == 'dependabot[bot]'
strategy:
matrix:
os:
- ubuntu-latest
# - macos-latest #Fix: The macos-latest workflow label currently uses the macOS 12 runner image.
# - macos-13
swift: ["5.9"]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/actions/setup
with:
swift: ${{ matrix.swift }}
os: ${{ matrix.os }}
- name: "Sync code base"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
make install
git push
gh pr merge --auto --merge "$PR_URL"
gh pr review --approve "$PR_URL"