diff --git a/.github/workflows/readme-stars.yml b/.github/workflows/readme-stars.yml index 2f8d1ed..43ad024 100644 --- a/.github/workflows/readme-stars.yml +++ b/.github/workflows/readme-stars.yml @@ -1,19 +1,29 @@ -name: Update README ⭐ +name: Update readme progress tracker + on: - schedule: - - cron: "51 */4 * * *" # Every 4 hours - workflow_dispatch: + schedule: + - cron: "51 */4 * * *" # Every 4 hours + workflow_dispatch: jobs: - update-readme: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: k2bd/advent-readme-stars@v1 - with: - userId: ${{ secrets.AOC_USER_ID }} - sessionCookie: ${{ secrets.AOC_SESSION }} - year: ${{ secrets.AOC_YEAR }} - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update README stars + update-readme: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + if: ${{ env.AOC_ENABLED }} + env: + AOC_ENABLED: ${{ secrets.AOC_ENABLED }} + - uses: k2bd/advent-readme-stars@v1 + if: ${{ env.AOC_ENABLED }} + env: + AOC_ENABLED: ${{ secrets.AOC_ENABLED }} + with: + userId: ${{ secrets.AOC_USER_ID }} + sessionCookie: ${{ secrets.AOC_SESSION }} + year: ${{ secrets.AOC_YEAR }} + - uses: stefanzweifel/git-auto-commit-action@v4 + if: ${{ env.AOC_ENABLED }} + env: + AOC_ENABLED: ${{ secrets.AOC_ENABLED }} + with: + commit_message: "update readme progess"