Skip to content

Commit

Permalink
fix call to scancode escript
Browse files Browse the repository at this point in the history
  • Loading branch information
kikofernandez committed Nov 14, 2024
1 parent e84ec49 commit 4224601
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -474,16 +474,7 @@ jobs:
run: docker run -v $PWD/:/github otp 'python3 --version'

- name: Install Scancode via pip
run: docker run -v $PWD/:/github otp 'sudo apt install -y pip && pip install scancode-toolkit && export PATH="$HOME/.local/bin:$PATH" && scancode --version && /github/scripts/scan-code.escript scancode --file-or-dir "${{ needs.pack.outputs.added_files }}" --template-path /github/scripts/scan-code/template.txt'

- name: Install Scancode via wget
run: docker run -v $PWD/:/github otp 'wget -P /github/ https://github.com/aboutcode-org/scancode-toolkit/releases/download/v32.2.1/scancode-toolkit-v32.2.1_py3.10-linux.tar.gz && tar -xvzf /github/scancode-toolkit-v32.2.1_py3.10-linux.tar.gz /github/scancode-toolkit-v32.2.1 && /github/scancode-toolkit-v32.2.1/configure && /github/scancode-toolkit-v32.2.1/scancode --version && alias scancode=/github/scancode-toolkit-v32.2.1/scancode && /github/scripts/scan-code.escript scancode --file-or-dir "${{ needs.pack.outputs.added_files }}" --template-path /github/scripts/scan-code/template.txt'

- name: Download scancode locally and Run in docker
run: |
wget https://github.com/aboutcode-org/scancode-toolkit/releases/download/v32.2.1/scancode-toolkit-v32.2.1_py3.10-linux.tar.gz
tar -xvzf /github/scancode-toolkit-v32.2.1_py3.10-linux.tar.gz scancode-toolkit-v32.2.1
docker run -v $PWD/:/github otp '/github/scancode-toolkit-v32.2.1/configure && /github/scancode-toolkit-v32.2.1/scancode --version && alias scancode=/github/scancode-toolkit-v32.2.1/scancode && /github/scripts/scan-code.escript scancode --file-or-dir "${{ needs.pack.outputs.added_files }}" --template-path /github/scripts/scan-code/template.txt'
run: docker run -v $PWD/:/github otp 'sudo apt install -y pip && pip install scancode-toolkit && export PATH="$HOME/.local/bin:$PATH" && scancode --version && /github/scripts/scan-code.escript --file-or-dir "${{ needs.pack.outputs.added_files }}" --template-path /github/scripts/scan-code/template.txt'

test:
name: Test Erlang/OTP
Expand Down

0 comments on commit 4224601

Please sign in to comment.