Added Otterize as new participant #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate PR | |
on: | |
pull_request: | |
paths: | |
- 'participants/**/*.yml' | |
jobs: | |
ValidateYAML: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Validate YAML files | |
uses: SoftCreatR/[email protected] | |
ValidateLinks: | |
runs-on: ubuntu-latest | |
needs: [ValidateYAML] | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Set up Ruby 2.6 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- id: file-diff | |
uses: lots0logs/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Validate Links | |
run: | | |
FILELIST="" | |
for FILENAME in $(jq '.[]' $HOME/files.json); do | |
FILENAME="${FILENAME:1}" | |
FILENAME="${FILENAME::-1}" | |
if [ -f "$FILENAME" ] && [[ $FILENAME == *"participants"* ]] && [ "${FILENAME: -4}" == ".yml" ]; then | |
FILELIST+="$FILENAME," | |
else | |
echo "- Skipped $FILENAME" | |
fi | |
done | |
if [ -n "$FILELIST" ]; then | |
gem install awesome_bot | |
awesome_bot --files "$FILELIST" --allow-dupe --allow-redirect --skip-save-results | |
else | |
echo "Nothing to do." | |
fi |