diff --git a/Dockerfile b/Dockerfile index 2ce6641..f246e9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ubuntu:latest +FROM python:3.12-bookworm COPY entrypoint.py /entrypoint.py RUN pip install py-allspice -ENTRYPOINT [ "/entrypoint.py" ] \ No newline at end of file +ENTRYPOINT [ "/entrypoint.py" ] diff --git a/action.yml b/action.yml index 15727e2..70a569b 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: project_path: description: "Path to the project file from the root of the repo" required: true - pcb_file_path: + pcb_path: description: "Path to the PCB file from the root of the repo" required: true output_file_name: @@ -17,13 +17,12 @@ inputs: attributes_mapping: description: "JSON string with the mapping of the attributes to the AllSpice attributes" required: true + auth_token: + description: "AllSpice Hub authentication token" runs: using: "docker" image: "Dockerfile" args: - - ${{ github.repository }} - - ${{ inputs.project_path }} - - ${{ inputs.pcb_file_path }} - "--source_ref" - ${{ github.sha }} - "--allspice_hub_url" @@ -32,3 +31,8 @@ runs: - ${{ inputs.attributes_mapping }} - "--output_file" - ${{ inputs.output_file_name }} + - ${{ github.repository }} + - ${{ inputs.project_path }} + - ${{ inputs.pcb_path }} + env: + ALLSPICE_AUTH_TOKEN: ${{ inputs.auth_token }} diff --git a/entrypoint.py b/entrypoint.py old mode 100644 new mode 100755