mirror of
https://github.com/Stone-Red-Code/Stone-Red-Code.git
synced 2026-09-04 00:56:21 +02:00
Update cron schedule and GitHub Actions user config
This commit is contained in:
@@ -2,14 +2,18 @@ name: Update README cards
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 3 * * *"
|
- cron: "0 0 * * *" # Runs once daily at midnight
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Generate stats card
|
- name: Generate stats card
|
||||||
uses: readme-tools/github-readme-stats-action@v1
|
uses: readme-tools/github-readme-stats-action@v1
|
||||||
@@ -19,10 +23,26 @@ jobs:
|
|||||||
path: profile/stats.svg
|
path: profile/stats.svg
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Generate top languages card
|
||||||
|
uses: readme-tools/github-readme-stats-action@v1
|
||||||
|
with:
|
||||||
|
card: top-langs
|
||||||
|
options: username=${{ github.repository_owner }}&layout=compact&langs_count=6
|
||||||
|
path: profile/top-langs.svg
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Generate pin card
|
||||||
|
uses: readme-tools/github-readme-stats-action@v1
|
||||||
|
with:
|
||||||
|
card: pin
|
||||||
|
options: username=readme-tools&repo=github-readme-stats
|
||||||
|
path: profile/pin-readme-tools-github-readme-stats.svg
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Commit cards
|
- name: Commit cards
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "[email protected]"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git add profile/*.svg
|
git add profile/*.svg
|
||||||
git commit -m "Update README cards" || exit 0
|
git commit -m "Update README cards" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user