Repository Template Sync #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Check out external repository | |
uses: actions/checkout@v3 | |
with: | |
repository: nhsdigital/nhs-notify-repository-template | |
path: nhs-notify-repository-template | |
- name: Run syncronisation script | |
run: | | |
./scripts/githooks/sync-template-repo.sh | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
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 the services the repository maintains | |
## 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 |