From 4e0980e81409fb106d398cac96cfe8c6900b4ce2 Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Sun, 30 Jan 2022 12:13:59 +0100 Subject: [PATCH] New attempt to fix action --- .github/workflows/pio-build-patch.yaml | 53 ++++++++++++++++++++++++++ .github/workflows/pio-build.yaml | 3 +- 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pio-build-patch.yaml diff --git a/.github/workflows/pio-build-patch.yaml b/.github/workflows/pio-build-patch.yaml new file mode 100644 index 0000000..7bb1915 --- /dev/null +++ b/.github/workflows/pio-build-patch.yaml @@ -0,0 +1,53 @@ +name: PlatformIO CI Patch + +on: + push: + branches: + - patch + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache PlatformIO + uses: actions/cache@v2 + with: + path: ~/.platformio + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + + - name: Set up Python + uses: actions/setup-python@v2 + + - name: Install PlatformIO + run: | + python -m pip install --upgrade pip + pip install --upgrade platformio + git config --global advice.detachedHead false + + - name: Run PlatformIO + #run: pio run -e gravity-release -e gravity-perf -e gravity-debug + run: pio run -e gravity-release -e gravity-perf + #run: pio run -e gravity-release + + - uses: EndBug/add-and-commit@v7 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit + with: + add: 'bin' + author_name: GitHub Action + author_email: mp-se@noreply.github.com + + branch: patch + + default_author: github_actor + message: 'GitHub Action Build' + pathspec_error_handling: ignore diff --git a/.github/workflows/pio-build.yaml b/.github/workflows/pio-build.yaml index 33096a7..3115156 100644 --- a/.github/workflows/pio-build.yaml +++ b/.github/workflows/pio-build.yaml @@ -4,7 +4,6 @@ on: push: branches: - dev - - patch jobs: build: @@ -47,7 +46,7 @@ jobs: author_name: GitHub Action author_email: mp-se@noreply.github.com - branch: ${GITHUB_REF##*/} + branch: dev default_author: github_actor message: 'GitHub Action Build'