Sitemap Update Check #1198
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: Sitemap Update Check | |
on: | |
schedule: | |
- cron: '0 */12 * * *' | |
workflow_dispatch: | |
jobs: | |
check: | |
if: github.repository == 'boomboompower/twitch-knowledgebase' || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
always-auth: false | |
node-version: 16.x | |
cache: npm | |
- run: npm install | |
- run: npm run start --if-present | |
env: | |
RAW_URL: ${{ secrets.RAW_URL }} | |
- name: Setup Git | |
run: | | |
git config --global user.name 'github-bot' | |
git config --global user.email '[email protected]' | |
- name: Commit Language Files | |
run: | | |
git add docs | |
git add README.md | |
git commit -m "Sitemap Update ${{ github.run_number }}" | |
continue-on-error: true | |
- name: Push Files | |
run: git push | |
continue-on-error: true | |
- name: Done | |
run: | | |
echo Goodbye! |