Skip to content

Commit

Permalink
set exit_code 0 for verify action
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-jn committed Oct 7, 2024
1 parent ef9176c commit a902ba1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/schema-authorize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: get_team_members
if: env.file_changed == 'true'
run: |
curl -H "Authorization: token ${{ env.TOKEN }}" \
curl --fail -H "Authorization: token ${{ env.TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/superlinked/teams/vdb-table-maintainers/members \
> team.json
Expand All @@ -56,19 +56,15 @@ jobs:
commit_author="${{ env.commit_author }}"
if jq -e ".[] | select(.login == \"$commit_author\")" team.json > /dev/null; then
echo "Authorized change."
echo "authorized=true" >> $GITHUB_ENV
else
echo "Unauthorized change detected!"
exit 1
echo "authorized=false" >> $GITHUB_ENV
fi
continue-on-error: false
report:
needs: verify
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send failure result to PR
uses: actions/github-script@v6
if: env.authorized == 'false'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
1 change: 1 addition & 0 deletions docs/tools/vdb_table/vendor.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$id": "vdb_table/schema/vendor",
"type": "object",
"properties": {


"name": {"type": "string", "$comment": "About | Vendor | " },
"links": {"allOf": [{"$ref": "#/$defs/links"}], "$comment": "About | Links | " },
Expand Down

0 comments on commit a902ba1

Please sign in to comment.