Skip to content

Commit

Permalink
generate sitemap in pace rather than moving
Browse files Browse the repository at this point in the history
  • Loading branch information
mattb-hippo committed Feb 17, 2025
1 parent eb31d77 commit 2c24efb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/generate-sitemap-auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
schedule:
- cron: "00 00 * * 5"
workflow_dispatch:
push:
branches:
- SFSW-2532-Create-XML-Sitemap

jobs:
generate-sitemap:
Expand All @@ -18,7 +15,7 @@ jobs:
SPACE_ID: ${{ secrets.TF_VAR_CPD_SPACE_ID }}
CONTENTFUL_ENVIRONMENT: dev
WEBSITE_ROOT: ${{ vars.CPD_WEBSITE_ROOT }}
SITEMAP_FILE_PATH: ${{ github.workspace }}/Utilities/sitemap.xml
SITEMAP_FILE_PATH: ${{ github.workspace }}/${{ vars.CPD_SITEMAP_FILE_PATH }}

steps:
- uses: actions/checkout@v4
Expand All @@ -36,9 +33,6 @@ jobs:
working-directory: ./Utilities
run: node generate-sitemap.js

- name: Move sitemap to target directory
run: mv -f Utilities/sitemap.xml Childrens-Social-Care-CPD/wwwroot/sitemap.xml

- name: Set dynamic PR title with today's date
run: echo "PR_TITLE=Sitemap change $(date '+%A %d-%m-%Y %H:%M:%S')" >> $GITHUB_ENV

Expand Down

0 comments on commit 2c24efb

Please sign in to comment.