forked from stn1slv/awesome-integration
-
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.
Add pipeline for GitHub stars (stn1slv#34)
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Update github stars | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 3' # Every Wednesday at midnight UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Init repo | ||
run: | | ||
git config --global user.name 'stn1slv' | ||
git config --global user.email '[email protected]' | ||
git pull origin main | ||
- name: Run your commands here | ||
run: | | ||
# Replace this with the actual commands you want to run | ||
wget https://github.com/stn1slv/markdown-github-stars-updater/releases/latest/markdown-github-stars-updater-linux-amd64 -o markdown-github-stars-updater | ||
chmod +x ./markdown-github-stars-updater | ||
./markdown-github-stars-updater README.md | ||
- name: Commit report | ||
run: | | ||
git status | ||
git add README.md | ||
git commit -am "Github stars updated" | ||
git push origin main |
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