diff --git a/.gitattributes b/.gitattributes index 170b481e9..8fc75e552 100755 --- a/.gitattributes +++ b/.gitattributes @@ -8,4 +8,3 @@ .github/ export-ignore computer/computer-k8s-operator/crd-generate/bin/ export-ignore computer/computer-dist/scripts/ export-ignore -computer/computer-dist/release-docs/ export-ignore diff --git a/.github/workflows/computer-ci.yml b/.github/workflows/computer-ci.yml index 9164d3b49..f2bf8e0d0 100644 --- a/.github/workflows/computer-ci.yml +++ b/.github/workflows/computer-ci.yml @@ -6,10 +6,12 @@ on: - master - release-* paths: + - .gitattributes - computer/** - .github/workflows/computer-ci.yml pull_request: paths: + - .gitattributes - computer/** - .github/workflows/computer-ci.yml concurrency: diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 66be588ce..3adc335e5 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -29,6 +29,15 @@ jobs: log: info config: .licenserc.yaml + - name: Check source archive licenses + shell: bash + run: | + git -C .. archive HEAD | tar -tf - > "$RUNNER_TEMP/computer-source-files.txt" + grep -Fx 'computer/computer-dist/release-docs/LICENSE' "$RUNNER_TEMP/computer-source-files.txt" + grep -Fx 'computer/computer-dist/release-docs/NOTICE' "$RUNNER_TEMP/computer-source-files.txt" + grep -E '^computer/computer-dist/release-docs/licenses/(.*/)?LICENSE[^/]*$' \ + "$RUNNER_TEMP/computer-source-files.txt" + - uses: actions/setup-java@v4 with: java-version: '17'