diff --git a/.github/workflows/seo-bot.yaml b/.github/workflows/seo-bot.yaml index d1d037b..eeb97da 100644 --- a/.github/workflows/seo-bot.yaml +++ b/.github/workflows/seo-bot.yaml @@ -1,13 +1,13 @@ -name: Update Markdown Files +name: Update Blogs # Trigger this action on push, pull request, or a schedule if needed on: workflow_dispatch: # Allows manual/API triggering schedule: - - cron: '*/5 * * * *' # Runs daily at 11:05pm IST + - cron: '*/5 * * * *' # Runs every 8 hours jobs: - update-markdown: + update-blogs: runs-on: ubuntu-latest steps: @@ -32,11 +32,9 @@ jobs: # Step 3: Commit and push changes if there are any - name: Commit and push changes - env: - PAT_TOKEN: ${{ secrets.PAT_TOKEN }} run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git add . git commit -m "Automated update of seo bot blogs" || echo "No changes to commit" - git push https://$PAT_TOKEN@github.com/${{ github.repository }} HEAD:master + git push origin master