Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/license-scheduled-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ jobs:

steps:
- name: Checkout main
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: aws/aws-sdk-cpp
path: aws-sdk-cpp
ref: main
- name: Checkout stable version
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: aws/aws-sdk-cpp
path: new-ref
ref: "1.9.85"
- name: Checkout scancode
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: nexB/scancode-toolkit
path: scancode-toolkit
fetch-depth: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# ScanCode
Expand All @@ -45,4 +45,4 @@ jobs:
./scancode-toolkit/scancode -l -n 30 --json-pp - ./new-ref/aws-cpp-sdk-core | grep short_name | sed -e 's/\"short_name\": //' -e 's/\"\,\?//g' | sort | uniq > new-licenses.txt
# compare
- name: License test
run: if ! cmp old-licenses.txt new-licenses.txt; then echo "Licenses differ! Failing."; exit -1; else echo "Licenses are the same. Success."; exit 0; fi
run: if ! cmp old-licenses.txt new-licenses.txt; then echo "Licenses differ! Failing."; exit -1; else echo "Licenses are the same. Success."; exit 0; fi