mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
only skip fossa on PRs (#9865)
This commit is contained in:
5
.github/workflows/license-check.yml
vendored
5
.github/workflows/license-check.yml
vendored
@@ -19,6 +19,11 @@ jobs:
|
||||
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
|
||||
run: |
|
||||
set -eo pipefail
|
||||
if [[ "${{github.event_name}}" != "pull_request" ]]; then
|
||||
./scripts/fossa.sh
|
||||
exit 0
|
||||
fi
|
||||
|
||||
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
|
||||
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user