Skip to content

Update spdx.yml

Update spdx.yml #10

Workflow file for this run

name: Generate SPDX Document
on:
push:
branches:
- main
jobs:
generate-spdx:
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
run: pip install spdx-doc-generator

Check failure on line 26 in .github/workflows/spdx.yml

View workflow run for this annotation

GitHub Actions / Generate SPDX Document

Invalid workflow file

The workflow is not valid. .github/workflows/spdx.yml (Line: 26, Col: 7): 'run' is already defined
- name: Generate SPDX Document
run: |
spdx-doc-generator --format=spdx-json --output=spdx-document.spdx.json .
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: spdx-document
path: spdx-document.spdx.json