Skip to content

Commit

Permalink
CCM-6405 fix script repo checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenvaines-bjss committed Sep 9, 2024
1 parent 62382de commit 5384c89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/scheduled-repository-template-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:

- name: Run syncronisation script
run: |
set -x
ls -la nhs-notify-repository-template/
./scripts/githooks/sync-template-repo.sh
- name: Create Pull Request
if: ${{ !env.ACT }}
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,15 +42,12 @@ jobs:
# Resultant drift from repository template
## Who should respond to this PR?
The team which owns the responsibility for the services the repository maintains
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.
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`
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
Expand Down
2 changes: 1 addition & 1 deletion scripts/githooks/sync-template-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ is_ignored() {
fi

for ignored in "${IGNORED_PATHS[@]}"; do
if [[ "$file" =~ $ignored ]]; then
if [[ -n "$ignored" && "$file" =~ $ignored ]]; then
return 0
fi
done
Expand Down

0 comments on commit 5384c89

Please sign in to comment.