Manual checkout fix
Some checks failed
Generate Power Graph / plot (push) Failing after 8s

This commit is contained in:
mrkmntal 2025-11-05 18:17:37 -05:00
commit 251b4032d7
2 changed files with 248 additions and 8 deletions

View file

@ -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