From f7acec5abc405e1f0f857173d082c472733443b9 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sat, 12 Mar 2022 20:05:58 +0100 Subject: [PATCH] Create nextion2text.yml --- .github/workflows/nextion2text.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/nextion2text.yml diff --git a/.github/workflows/nextion2text.yml b/.github/workflows/nextion2text.yml new file mode 100644 index 00000000..a2682fb0 --- /dev/null +++ b/.github/workflows/nextion2text.yml @@ -0,0 +1,28 @@ +name: nextion2text + +on: + pull_request: + push: + branches: + - main + +jobs: + gen-nextion-to-text: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + + - name: Run nextion2text + run: | + apt update && apt install -y python3 + cd HMI + wget https://raw.githubusercontent.com/joBr99/Nextion2Text/master/Nextion2Text.py + python Nextion2Text.py -i nspanel.HMI -o n2t-out + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Add nextion2text + file_pattern: HMI/n2t-out/*.txt