-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intention is to cancel ongoing/queued jobs if a new version of a PR is uploaded Fixes #626
- Loading branch information
1 parent
226808f
commit fd93183
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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@v3 | ||
with: | ||
# required to grab the history of the PR | ||
fetch-depth: 0 | ||
|
||
- 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 }}" |
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
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