fix: Fix the custom action to run #1

Merged
shrikanth-allspice merged 5 commits from :jt/fix-pip into main 2024-04-09 15:46:06 +00:00
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
FROM ubuntu:latest FROM python:3.12-bookworm
COPY entrypoint.py /entrypoint.py COPY entrypoint.py /entrypoint.py
RUN pip install py-allspice RUN pip install py-allspice
ENTRYPOINT [ "/entrypoint.py" ] ENTRYPOINT [ "/entrypoint.py" ]

View File

@ -7,7 +7,7 @@ inputs:
project_path: project_path:
description: "Path to the project file from the root of the repo" description: "Path to the project file from the root of the repo"
required: true required: true
pcb_file_path: pcb_path:
description: "Path to the PCB file from the root of the repo" description: "Path to the PCB file from the root of the repo"
required: true required: true
output_file_name: output_file_name:
@ -17,13 +17,12 @@ inputs:
attributes_mapping: attributes_mapping:
description: "JSON string with the mapping of the attributes to the AllSpice attributes" description: "JSON string with the mapping of the attributes to the AllSpice attributes"
required: true required: true
auth_token:
description: "AllSpice Hub authentication token"
runs: runs:
using: "docker" using: "docker"
image: "Dockerfile" image: "Dockerfile"
args: args:
- ${{ github.repository }}
- ${{ inputs.project_path }}
- ${{ inputs.pcb_file_path }}
- "--source_ref" - "--source_ref"
- ${{ github.sha }} - ${{ github.sha }}
- "--allspice_hub_url" - "--allspice_hub_url"
@ -32,3 +31,8 @@ runs:
- ${{ inputs.attributes_mapping }} - ${{ inputs.attributes_mapping }}
- "--output_file" - "--output_file"
- ${{ inputs.output_file_name }} - ${{ inputs.output_file_name }}
- ${{ github.repository }}
- ${{ inputs.project_path }}
- ${{ inputs.pcb_path }}
env:
ALLSPICE_AUTH_TOKEN: ${{ inputs.auth_token }}

0
entrypoint.py Normal file → Executable file
View File