diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 2adf6e4..0ec82a4 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -36,24 +36,3 @@ jobs: COVERPROFILE: ./cover.out CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: make test - - license-scan: - name: License scan - runs-on: ubuntu-latest - if: github.event_name == 'push' - needs: [test] - steps: - - uses: actions/checkout@v4 - - name: Install FOSSA - run: | - curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash - - - name: Run FOSSA analysis - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - run: fossa analyze - - - name: Check FOSSA status - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - run: fossa test diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml new file mode 100644 index 0000000..5435281 --- /dev/null +++ b/.github/workflows/license.yaml @@ -0,0 +1,27 @@ +name: License + +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + license-scan: + name: License scan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install FOSSA + run: | + curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash + + - name: Run FOSSA analysis + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} + run: fossa analyze + + - name: Check FOSSA status + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} + run: fossa test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81a78a1..a10932f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: - "v[0-9]+.[0-9]+.[0-9]+" - "[a-z]+/v[0-9]+.[0-9]+.[0-9]+" workflow_run: - workflows: ["Build"] + workflows: ["Test"] branches: [master] types: [completed]