- fix(Dockerfile): update ENTRYPOINT to use entrypoint.sh script

- fix(action.yaml): remove unnecessary arguments from Docker runs section
- feat(entrypoint.sh): add entrypoint script for running action.py with arguments
This commit is contained in:
alan890104
2023-09-13 18:49:19 +08:00
parent 3f98f0743c
commit 9f16e3dd3c
3 changed files with 4 additions and 3 deletions

View File

@@ -4,4 +4,4 @@ WORKDIR /app
COPY action.py /app
ENTRYPOINT ["python", "./action.py"]
ENTRYPOINT ["./entrypoint.sh"]

View File

@@ -16,7 +16,5 @@ runs:
using: 'docker'
image: 'Dockerfile'
args:
- '--pattern'
- '${{ inputs.pattern }}'
- '--suffix'
- '${{ inputs.suffix }}'

3
entrypoint.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
python3 action.py --pattern $1 --suffix $2