Skip to content

Commit

Permalink
split git activities for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner committed Dec 13, 2023
1 parent 92400c8 commit 033abe1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/update-test-runtime-statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ jobs:
- name: Commit
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GIT_AUTHOR_NAME: "GitHub Actions Bot"
GIT_AUTHOR_EMAIL: "<[email protected]>"
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<[email protected]>"
git commit -m "chore(ci): updated test file runtime file" .ci/runtimes.json
- name: Create PR message
run: |
FIRST_LINE=$(git diff-tree -r -c -M -C --no-commit-id HEAD | head -n 1)
BLOB_HASH=$(echo $FIRST_LINE | awk '{print $4}')
SIZE=$(echo $BLOB_HASH | git cat-file --batch-check | grep "blob" | awk '{ print $3 }')
PRINTABLE_SIZE=$(numfmt --to=iec --suffix=B --format="%.1f" "$SIZE")
git push -f origin HEAD:chore/update-runtimes
cat > /tmp/commit-message <<EOD
This PR updates the test runtimes file to incorporate latest statistics for better scheduling.
Expand All @@ -56,6 +57,10 @@ jobs:
git branch -d chore/update-runtimes
\`\`\`
EOD
- run: git push origin :chore/update-runtimes
- run: git push -f origin HEAD:chore/update-runtimes
- run: |
gh pr create --title "chore(ci): update test runtimes" \
--body-file /tmp/commit-message
--base master \
Expand Down

0 comments on commit 033abe1

Please sign in to comment.