Update main.yml

This commit is contained in:
Boof 2022-12-08 12:10:55 +01:00 committed by GitHub
parent ce66ddc838
commit 359fce8758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,12 +28,16 @@ jobs:
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
- name: Commit and push
run: |
if [[ `git status --porcelain sitemap.xml` ]]; then
git config --global user.name 'Vincent A. Cicirello'
git config --global user.email 'cicirello@users.noreply.github.com'
git add sitemap.xml
git commit -m "Automated sitemap update" sitemap.xml
git push
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.2.3
with:
title: "Automated sitemap update"
body: >
Automated changes. Sitemap updated by
the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
GitHub action.
commit-message: "Automated sitemap update."
author: Vincent A. Cicirello <cicirello@users.noreply.github.com>
committer: Vincent A. Cicirello <cicirello@users.noreply.github.com>
branch: games/main
delete-branch: true