-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscheduled-repository-template-sync.yaml
More file actions
47 lines (39 loc) · 1.63 KB
/
scheduled-repository-template-sync.yaml
File metadata and controls
47 lines (39 loc) · 1.63 KB
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
45
46
47
name: Repository Template Sync
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
checks: read
jobs:
update-external-repo:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Sync repository template
uses: NHSDigital/nhs-notify-shared-modules/.github/actions/sync-template-repo@3.0.8
with:
github_token: ${{ github.token }}
- name: Create Pull Request
if: ${{ !env.ACT }}
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Drift from template
branch: scheduledTemplateRepositorySync
delete-branch: true
title: '[Template Sync] Drift from template-repository remediation'
body: |
# Resultant drift from repository template
## Who should respond to this PR?
The team which owns the responsibility for this component repository. You may want to consult other contributors.
## How to progress this PR
The repositories guardians should review the contents of the PR and decide how to proceed, you may wish to back-out certain changes or accept them from the upstream `nhsdigital/nhs-notify-repository-template` repository.
If there are changes you do not wish to see again, it is recommended you add exclusions to `scripts/config/.repository-template-sync-ignore`.
labels: |
template
automation
draft: false