Skip to content

Commit

Permalink
workflow debug 4
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 6, 2023
1 parent b31244b commit cdcc1d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/save-stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ filename asFileReference writeStreamDo: [:s | s << body ].
Transcript show: 'Saved put request body... '.
"

curl -X PUT 'https://api.github.com/repos/openponk/$REPOSITORY_NAME/contents/$CSVFILENAME' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $GITHUB_TOKEN" -d `cat *.csv`
count=`ls -1 *.csv 2>/dev/null | wc -l`
if [ $count == 1 ] then
curl -X PUT 'https://api.github.com/repos/openponk/$REPOSITORY_NAME/contents/$CSVFILENAME' --fail-with-body -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $GITHUB_TOKEN" -d `cat *.csv`
else
echo 'curl skipped'
fi

0 comments on commit cdcc1d1

Please sign in to comment.