Stargazer #4
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
# This workflow builds a list of your starred repositories | |
name: Stargazer | |
on: | |
schedule: | |
- cron: '42 2 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
# Generate the list | |
- name: Create star TABLE | |
id: stargazer | |
uses: rverst/[email protected] | |
with: | |
github-user: ${{ github.actor }} | |
github-token: ${{ secrets.STARS_TOKEN }} | |
list-file: "README.md" | |
format: table | |
with-license: false | |
# Commit the changes | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions [bot]" | |
git add . | |
git commit -m "Update starS" | |
# Push the changes | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |