Skip to content

Commit ae0e408

Browse files
authored
Chore: [AEA-0000] - add dependabot approve schedule (#19)
Add Dependabot schedule to the repository
1 parent 1cece7b commit ae0e408

2 files changed

Lines changed: 58 additions & 50 deletions

File tree

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: 37 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,41 @@
11
name: pull_request
2-
32
on:
4-
pull_request:
5-
branches: [ main ]
3+
pull_request:
4+
branches: [main]
65
permissions: {}
76
jobs:
8-
get_config_values:
9-
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
10-
permissions:
11-
attestations: "read"
12-
contents: "read"
13-
packages: "read"
14-
with:
15-
verify_published_from_main_image: false
16-
17-
dependabot-auto-approve-and-merge:
18-
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
19-
permissions:
20-
contents: "write"
21-
pull-requests: "write"
22-
secrets:
23-
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
24-
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
25-
26-
quality_checks:
27-
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
28-
needs: [ get_config_values ]
29-
permissions:
30-
contents: "read"
31-
packages: "read"
32-
id-token: "write"
33-
with:
34-
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
35-
secrets:
36-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37-
38-
pr_title_format_check:
39-
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
40-
permissions:
41-
pull-requests: "write"
42-
43-
tag_release:
44-
needs: [ get_config_values ]
45-
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
46-
permissions:
47-
id-token: "write"
48-
contents: "write"
49-
packages: "write"
50-
with:
51-
dry_run: true
52-
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
53-
branch_name: ${{ github.event.pull_request.head.ref }}
54-
tag_format: ${{ needs.get_config_values.outputs.tag_format }}
7+
get_config_values:
8+
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
9+
permissions:
10+
attestations: "read"
11+
contents: "read"
12+
packages: "read"
13+
with:
14+
verify_published_from_main_image: false
15+
quality_checks:
16+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
17+
needs: [get_config_values]
18+
permissions:
19+
contents: "read"
20+
packages: "read"
21+
id-token: "write"
22+
with:
23+
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
24+
secrets:
25+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
26+
pr_title_format_check:
27+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
28+
permissions:
29+
pull-requests: "write"
30+
tag_release:
31+
needs: [get_config_values]
32+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845
33+
permissions:
34+
id-token: "write"
35+
contents: "write"
36+
packages: "write"
37+
with:
38+
dry_run: true
39+
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
40+
branch_name: ${{ github.event.pull_request.head.ref }}
41+
tag_format: ${{ needs.get_config_values.outputs.tag_format }}

0 commit comments

Comments
 (0)