mirror of
https://github.com/appium/appium.git
synced 2026-01-06 10:20:07 -06:00
ci: Tune license checks on fork repositories (#20700)
This commit is contained in:
14
.github/workflows/fossa.yml
vendored
14
.github/workflows/fossa.yml
vendored
@@ -13,12 +13,6 @@ jobs:
|
||||
env:
|
||||
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
|
||||
steps:
|
||||
- name: Ignore forks
|
||||
run: |
|
||||
if [ -z "$FOSSA_API_KEY" ]; then
|
||||
echo "FOSSA_API_KEY is empty. Is the job running in a forked repository?"
|
||||
exit 0
|
||||
fi
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: master
|
||||
@@ -29,5 +23,9 @@ jobs:
|
||||
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
|
||||
- name: Run FOSSA analysis
|
||||
run: |
|
||||
fossa analyze
|
||||
fossa test
|
||||
if [ -n "$FOSSA_API_KEY" ]; then
|
||||
fossa analyze
|
||||
fossa test
|
||||
else
|
||||
echo "License checks did not run. FOSSA_API_KEY is not defined for this fork."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user