This commit is contained in:
parent
3c1f5173eb
commit
251b4032d7
2 changed files with 248 additions and 8 deletions
|
|
@ -10,13 +10,14 @@ on:
|
|||
jobs:
|
||||
plot:
|
||||
runs-on: [self-hosted]
|
||||
env:
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
COMMIT: ${{ github.sha }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: https://data.forgejo.org/actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.PAT_READ_REPO }}
|
||||
fetch-depth: 0
|
||||
show-progress: true
|
||||
- name: Clone repository manually
|
||||
run: |
|
||||
git clone --branch "$BRANCH" https://${{ secrets.PAT_READ_REPO }}@mentalnet.xyz/forgejo/markmental/amd-monitor.git .
|
||||
echo "✅ Checked out branch $BRANCH ($COMMIT)"
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
|
|
@ -26,10 +27,10 @@ jobs:
|
|||
|
||||
- name: Generate power graph
|
||||
run: |
|
||||
python3 plot_power.py # (script placed in your repo)
|
||||
python3 plot_power.py
|
||||
|
||||
- name: Upload graph artifact
|
||||
uses: https://data.forgejo.org/actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: power-graph
|
||||
path: power_graph.png
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue