Skip to content

Commit

Permalink
Update and rename update_readme.yml to daily-commit-link.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunterdii authored Nov 6, 2024
1 parent 40b6ae4 commit 6f58959
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/daily-commit-link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Daily Commit Link and POTD Badge Tracker

on:
push:
branches:
- main # or your default branch name
schedule:
- cron: '0 0 * * *' # This will run daily at midnight UTC
workflow_dispatch:

jobs:
update-link:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install requests
run: pip install requests

- name: Update README with the Latest Commit
run: python update_commit.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} README.md

- name: Commit and Push Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
git diff-index --quiet HEAD || git commit -m "Update latest commit and POTD badge"
git push
35 changes: 0 additions & 35 deletions .github/workflows/update_readme.yml

This file was deleted.

0 comments on commit 6f58959

Please sign in to comment.