Skip to content

Update Blog Archive #5543

Update Blog Archive

Update Blog Archive #5543

Workflow file for this run

name: Update Blog Archive
on:
push:
branches:
- master
schedule:
- cron: '0 */12 * * *'
jobs:
update_blog_archive:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Build and Run Blog Crawler
run: |
go build -o blog_crawler
./blog_crawler
- name: Check for Changes
id: check_changes
run: |
git diff --exit-code || echo "changes" > changes_detected
- name: Auto Commit and Push Changes
if: steps.check_changes.outputs.changes_detected == 'changes'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update xargin_blogs.md"
branch: master
push_options: --force