Skip to content

Commit be2c41d

Browse files
authored
Update CI-Dependabot.yml
1 parent 0b95c99 commit be2c41d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/CI-Dependabot.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,28 @@ jobs:
3333
swift: ${{ matrix.swift }}
3434
os: ${{ matrix.os }}
3535

36+
- name: "gh pr checkout and git config"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: |
40+
gh pr checkout ${{ github.event.pull_request.number }}
41+
git config user.name "${GITHUB_ACTOR}"
42+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
43+
3644
- name: "Update Mintfile"
3745
run: |
3846
swift .github/dependabot-mintfile/MintfileBuilder.swift
39-
git add Mintfile
47+
make commit file="Mintfile"
4048
41-
- name: "Sync code base"
49+
- name: "Update Sources"
50+
run: |
51+
make -j 3 install
52+
53+
- name: "git push, gh pr auto merge"
4254
env:
4355
PR_URL: ${{ github.event.pull_request.html_url }}
4456
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4557
run: |
46-
gh pr checkout ${{ github.event.pull_request.number }}
47-
git config user.name "${GITHUB_ACTOR}"
48-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
49-
make -j 3 install
5058
git push
5159
gh pr merge --auto --merge "$PR_URL"
5260
gh pr review --approve "$PR_URL"

0 commit comments

Comments
 (0)