Commit 15ddb46 1 parent 15e206a commit 15ddb46 Copy full SHA for 15ddb46
File tree 4 files changed +19
-16
lines changed
4 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
+ - package-ecosystem : " github-actions"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " weekly"
7
+ assignees :
8
+ - ylabonte
9
+
3
10
- package-ecosystem : " pip"
4
11
directory : " /"
5
12
schedule :
Original file line number Diff line number Diff line change @@ -3,31 +3,25 @@ name: "Auto-Merge Dependabot PRs"
3
3
on :
4
4
pull_request :
5
5
branches :
6
- - master
6
+ - " main "
7
7
8
8
permissions :
9
- actions : read
10
- security-events : write
11
9
contents : write
12
10
pull-requests : write
13
11
14
12
jobs :
15
- lint :
16
- name : " Run CI Workflow"
17
- uses : ./.github/workflows/pylint.yml
18
- test :
19
- name : " Run CI Workflow"
20
- uses : ./.github/workflows/unittest.yml
21
13
automerge :
22
- name : " Auto-merge PR (Dependabot only!)"
23
- needs :
24
- - lint
25
- - test
14
+ name : " Auto-approve PR"
26
15
runs-on : ubuntu-latest
27
- if : github.actor == 'dependabot[bot]'
16
+ if : github.actor == 'dependabot[bot]' || github.actor == 'ylabonte'
28
17
steps :
29
- - name : " Auto-merge the PRs"
30
- run : gh pr merge --auto --merge "$PR_URL"
18
+ - name : " Approve PR to enable auto-merge"
19
+ run : gh pr review --approve "$PR_URL"
20
+ env :
21
+ PR_URL : ${{github.event.pull_request.html_url}}
22
+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
23
+ - name : " Auto-merge PR"
24
+ run : gh pr merge --merge --auto "$PR_URL"
31
25
env :
32
26
PR_URL : ${{github.event.pull_request.html_url}}
33
27
GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Lint
2
2
3
3
on :
4
4
push :
5
+ pull_request :
5
6
workflow_call :
6
7
7
8
jobs :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Unittest
2
2
3
3
on :
4
4
push :
5
+ pull_request :
5
6
workflow_call :
6
7
7
8
jobs :
You can’t perform that action at this time.
0 commit comments