Feature: Add PublishValue and Subscribe from kuksa.val.v2 #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: spdx | |
on: | |
pull_request | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
check-spdx-headers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# required to grab the history of the PR | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: Get changed files | |
run: | | |
echo "files=$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | tr '\n' ',')" >> $GITHUB_ENV | |
- name: Set license | |
run: | | |
echo "licenses=Apache-2.0" >> $GITHUB_ENV | |
- uses: eclipse-kuksa/kuksa-actions/spdx@2 | |
with: | |
files: "${{ env.files }}" | |
licenses: "${{ env.licenses }}" |