Skip to content

Commit

Permalink
Update monitoring workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jvsguerra committed Jan 16, 2025
1 parent 7745969 commit 33166e5
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,28 @@ jobs:
mkdir usage
mv usage.txt *.png usage/
- name: Send job submission data to the server
uses: nicklasfrahm/scp-action@main
with:
direction: upload
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
insecure_password: ${{ secrets.PASSWORD }}
insecure_ignore_fingerprint: true
source: ${{ steps.date.outputs.date }}.tar.gz
target: ./statistics/${{ steps.date.outputs.date }}.tar.gz

- name: Upload job submission data
uses: actions/upload-artifact@v4
with:
name: usage
path: usage
name: ${{ steps.date.outputs.date }}
path: ${{ steps.date.outputs.date }}

- name: Clean up
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
echo ${{ secrets.PASSWORD }} | sudo -S su - -c "rm /home/${{ secrets.USERNAME }}/usage.txt"

0 comments on commit 33166e5

Please sign in to comment.