-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5658e3a
commit b430eea
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
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
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: | ||
|
@@ -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 |