Skip to content

Commit

Permalink
Add job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyLeite committed Apr 8, 2023
1 parent 38af283 commit 38be17f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,36 @@ jobs:
echo "plugins=$PLUGINS" >> $GITHUB_OUTPUT
- name: Generate job summary
id: generate-summary
run: |
PLUGINS_PENDING_BUILD=(${{ steps.changed-files.outputs.plugins_pending_build }})
PLUGINS_PENDING_UPLOAD=(${{ steps.changed-files.outputs.plugins_pending_upload }})
echo "| Plugin | Build | Upload |" >> "$GITHUB_STEP_SUMMARY"
echo "| ------ | ----- | ------ |" >> "$GITHUB_STEP_SUMMARY"
yes="✔️"
no="🚫"
for plugin in "${PLUGINS_PENDING_BUILD[@]}"; do
# Find whether plugin needs to be uploaded
upload="$no"
for uploadPlugin in "${PLUGINS_PENDING_UPLOAD[@]}"; do
if [[ "$uploadPlugin" == "$plugin" ]]; then
upload=1
break
fi
done
if [[ "$upload" == 1 ]]; then
upload="$yes"
fi
echo "| $plugin | $yes | $upload |" >> "$GITHUB_STEP_SUMMARY"
done
# ------------------------------------------------------------------

Expand Down

0 comments on commit 38be17f

Please sign in to comment.