mirror of
https://github.com/github/codeql-action.git
synced 2026-11-09 06:29:52 +00:00
Add rebuild diff to step summary
This commit is contained in:
8
.github/workflows/rebuild.yml
vendored
8
.github/workflows/rebuild.yml
vendored
@@ -108,6 +108,14 @@ jobs:
|
||||
id: push
|
||||
run: |
|
||||
if [ ! -z "$(git status --porcelain)" ]; then
|
||||
echo "Adding diff to workflow summary"
|
||||
echo "### Rebuild diff" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
||||
git diff --output="$RUNNER_TEMP/rebuild.diff"
|
||||
cat "$RUNNER_TEMP/rebuild.diff" >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
echo "Changes detected, committing and pushing."
|
||||
git add --all
|
||||
# If the merge originally had conflicts, finish the merge.
|
||||
|
||||
Reference in New Issue
Block a user