Skip to content

Commit

Permalink
more fixing of zephyr stars logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyr Bot committed Jun 7, 2024
1 parent 1cdc4fb commit ee3c8e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/zephyr-stars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ jobs:
- name: Zephyr Stars
run: |
wget -O stars.content https://raw.githubusercontent.com/ZephyrTransport/zephyr-stars/master/STARS.md
if [[ X$(git status -uno --short) -eq X ]]; then exit 0; fi
# --- got new stars
cat stars.template stars.content > stars.md
DATE=$(date +"%b %d, %Y")
echo "<br/><br/><i>Last updated $DATE </i>" >> stars.md
echo stars.md
# --- push to github
git config user.name "Zephyr Bot"
git config user.email "info@zephyrtransport.org"
DATE=$(date +"%b %d, %Y")
if [[ $(git status -uno --short) ]]; then echo "<br/><br/><i>Last updated $DATE </i>" >> stars.md && git add stars.md && git commit -m "update stars" && git push; fi
git add stars.md && git commit -m "update stars" && git push

0 comments on commit ee3c8e7

Please sign in to comment.