Skip to content

Commit

Permalink
Remove PAT token
Browse files Browse the repository at this point in the history
  • Loading branch information
Kameshwaran committed Oct 6, 2024
1 parent 5658e3a commit b430eea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/seo-bot.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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://[email protected]/${{ github.repository }} HEAD:master
git push origin master

0 comments on commit b430eea

Please sign in to comment.