Skip to content

Commit a824fa7

Browse files
committed
Add Dependabot schedule and remove dependabot-auto-approve-and-merge job
1 parent 39e2acd commit a824fa7

3 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto-approve dependency updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '*/30 * * * *'
7+
8+
permissions: {}
9+
jobs:
10+
auto-approve-dependabot:
11+
runs-on: ubuntu-22.04
12+
environment: create_pull_request
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- name: Auto approve and enable auto-merge
18+
uses: NHSDigital/eps-dependabot-approve@da0503449b218ccd99bc547e242007d5514e4d2f
19+
with:
20+
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
21+
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}

.github/workflows/pull_request.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: build_pr
2-
32
on:
43
pull_request:
54
branches: [main]
6-
75
permissions: {}
86
jobs:
97
get_config_values:
@@ -14,15 +12,6 @@ jobs:
1412
attestations: read
1513
contents: read
1614
packages: read
17-
dependabot-auto-approve-and-merge:
18-
needs: quality_checks
19-
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@6a7443adade993bcd35e70cf4b18f83f62ed5d13
20-
permissions:
21-
contents: write
22-
pull-requests: write
23-
secrets:
24-
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
25-
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
2615
pr_title_format_check:
2716
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@9564a673928c4ed2157e0a26ee0d68304d429e87
2817
permissions:
@@ -37,15 +26,13 @@ jobs:
3726
with:
3827
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
3928
run_docker_scan: false
40-
4129
secrets:
4230
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4331
package_npm_code:
4432
needs: [quality_checks, get_config_values]
4533
uses: ./.github/workflows/package_npm_code.yml
4634
with:
4735
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
48-
4936
tag_release:
5037
needs: [get_config_values]
5138
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8399c1f015c1304e40771cbd8ccc24c7ed48fdbc

0 commit comments

Comments
 (0)