build(prysm): update default build method to go (forces bazel for minimal) #449
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: Vet | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: schema validate | |
uses: nrkno/yaml-schema-validator-github-action@v4 | |
with: | |
schema: schema.yaml | |
target: config.yaml | |
duplicates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: mikefarah/[email protected] | |
- name: duplicate repository tag check | |
run: | | |
OUTPUT=$(yq 'group_by(.target.repository + ":" + .target.tag) | map(select(length>1))' config.yaml) | |
if [ "$OUTPUT" != "[]" ]; then | |
echo "Duplicate tag found in config.yaml" | |
echo $OUTPUT | |
exit 1 | |
fi | |
notify: | |
name: Discord Notification | |
runs-on: ubuntu-latest | |
needs: | |
- validate | |
- duplicates | |
if: failure() | |
steps: | |
- name: Notify | |
uses: nobrayner/discord-webhook@v1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} |