Skip to content

Commit

Permalink
Prepare for new release with Job Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenKnoops committed May 9, 2022
2 parents 68b5d6d + 0449903 commit 3308718
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
# 1. --rulesetFile /config/ruleset.json
# 2. --rulesetUrl https://gist.github.com/ruleset.json
function check_target_repos {
echo '### Overview checked repositories' >> $GITHUB_STEP_SUMMARY
echo '| Repository | Link |' >> $GITHUB_STEP_SUMMARY
echo '| ---------- | ---- |' >> $GITHUB_STEP_SUMMARY
for i in $(echo "$TARGET_REPOS" | sed "s/,/ /g"); do
export TARGET_REPO=$i
echo "Checking repository: $i"
echo "Using ruleset parameter: $1"
/app/repolinter/bin/repolinter.js lint \
"$1" \
-g https://x-access-token:"$GITHUB_TOKEN"@github.com/"${i}"
echo "::notice:: Checked repository: $i"
echo '| $i | <https://github.com/$i> |' >> $GITHUB_STEP_SUMMARY
done
echo 'Done checking the compliance :rocket: ' >> $GITHUB_STEP_SUMMARY
}

regex='(https?)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
Expand Down

0 comments on commit 3308718

Please sign in to comment.