From 001ce42f991807afa77394578fc9fffc7f5d6c51 Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:54:04 +0300 Subject: [PATCH 1/4] Create entrypoint.sh --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..1b565af --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exec $@ From 6d8f28a97924bcb9cd01ce384f76fd5b7fdf704a Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:54:52 +0300 Subject: [PATCH 2/4] Update Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 815bfe7..4670857 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,3 +9,9 @@ RUN apt-get update && \ && \ rm -rf /var/cache/apt && \ pip3 install platformio --break-system-packages + +ADD entrypoint.sh /entrypoint.sh + +RUN chmod +x /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] From 9676c94f8795ca00821a5cfe9fe9cba2126ba293 Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:56:08 +0300 Subject: [PATCH 3/4] Update action.yml --- action.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 900d8db..033ff03 100644 --- a/action.yml +++ b/action.yml @@ -1,9 +1,13 @@ name: 'Platformio build' description: 'Building platformio projects' +inputs: + command: + description: 'Command' + required: true + default: pio run runs: using: 'docker' - image: 'docker://sergeyladanov/platformio:v1' + image: 'docker://sergeyladanov/platformio:v2' args: - - pio - - run + - ${{ inputs.command }} From 147f257ce5ca4017f20b682b14874a857c4dfe1d Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:56:26 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b566991..a411b60 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,6 @@ jobs: - uses: actions/checkout@v3 - name: Build - uses: embedd-actions/platformio-ci@v1 + uses: embedd-actions/platformio-ci@v2 ```