Skip to content

Commit

Permalink
Update spdx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deekshitha-kumbla authored Sep 6, 2024
1 parent d3f1a1e commit f4aaef6
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/spdx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3 # Make sure to use the latest version

# - name: Install SPDX Tools
# run: |
# sudo apt-get update
# sudo apt-get install -y spdx-tools

- name: Install Python
run: sudo apt-get install -y python3-pip

- name: Install SPDX Tools via pip
run: |
pip install spdx-tools
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Generate SPDX Document
run: |
spdx-doc-generator --format=spdx-json --output=spdx-document.spdx.json .
- name: Upload Artifacts
uses: actions/upload-artifact@v3
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11.0.13'
- name: Create spdx-file
id: spdx-builder
uses: philips-software/spdx-action@v0.9.1.1
with:
project: my-project
mode: ort
- uses: actions/upload-artifact@v2
with:
name: licenses
path: ${{ steps.spdx-builder.outputs.spdx-file }}
with:
name: spdx-document
path: spdx-document.spdx.json

0 comments on commit f4aaef6

Please sign in to comment.