-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment out repo pushing, lets see if the report runs
- Loading branch information
Showing
1 changed file
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,24 +68,25 @@ jobs: | |
run: | | ||
POD_NAME=$(kubectl get pods --selector=job-name=disk-usage-report-job -o jsonpath='{.items[0].metadata.name}') | ||
kubectl cp $POD_NAME:/output/du_report.json du_report.json -n jupyterhub | ||
cat du_report.json | ||
continue-on-error: true | ||
|
||
# continue-on-error for previous steps so we delete the job | ||
- name: Delete Disk Usage Report Job | ||
run: | | ||
kubectl delete job disk-usage-report-job | ||
- name: Clone dandi-hub-usage-reports repository | ||
run: | | ||
git clone https://github.com/dandi/dandi-hub-usage-reports.git | ||
- name: Copy report file to repository, commit and push report | ||
run: | | ||
cd dandi-hub-usage-reports | ||
DATE=$(date +'%Y-%m-%d') | ||
mv ../du_report.json $DATE_du_report.json | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git add $DATE_du_report.json | ||
git commit -m "Add disk usage report for $DATE" | ||
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/dandi/dandi-hub-usage-reports.git | ||
# - name: Clone dandi-hub-usage-reports repository | ||
# run: | | ||
# git clone https://github.com/dandi/dandi-hub-usage-reports.git | ||
# | ||
# - name: Copy report file to repository, commit and push report | ||
# run: | | ||
# cd dandi-hub-usage-reports | ||
# DATE=$(date +'%Y-%m-%d') | ||
# mv ../du_report.json $DATE_du_report.json | ||
# git config --global user.name "GitHub Actions" | ||
# git config --global user.email "[email protected]" | ||
# git add $DATE_du_report.json | ||
# git commit -m "Add disk usage report for $DATE" | ||
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/dandi/dandi-hub-usage-reports.git |