mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-10 16:01:00 +02:00
Update helper_stats_graphs.yaml
This commit is contained in:
22
.github/workflows/helper_stats_graphs.yaml
vendored
22
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -2,6 +2,8 @@
|
|||||||
---
|
---
|
||||||
name: Generate weekly stats graphs
|
name: Generate weekly stats graphs
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 18 * * *
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["weekly_stats.yaml"]
|
workflows: ["weekly_stats.yaml"]
|
||||||
types:
|
types:
|
||||||
@@ -9,8 +11,26 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
stars_graphs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Update stars
|
||||||
|
run: |
|
||||||
|
echo "Starting run"
|
||||||
|
# Get stars
|
||||||
|
curl -o .github/starstmp.svg https://contrib.rocks/image?repo=alexbelgium/hassio-addons
|
||||||
|
FILESIZE=$(stat -c%s ".github/starstmp.svg")
|
||||||
|
if (( FILESIZE > MAXSIZE)); then mv .github/starstmp.svg .github/stars.svg; fi
|
||||||
|
- name: Commit if needed
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: "GitHub bot : graphs updated"
|
||||||
|
default_author: github_actions
|
||||||
|
|
||||||
stats_graphs:
|
stats_graphs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user