Skip to content

Commit

Permalink
Comment out repo pushing, lets see if the report runs
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Nov 8, 2024
1 parent f18e8b7 commit 387cfc1
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "actions@github.com"
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 "actions@github.com"
# 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

0 comments on commit 387cfc1

Please sign in to comment.