From a402a0d02ab40f2d29ec071d7c23b45572b913f2 Mon Sep 17 00:00:00 2001 From: Anthony Doud Date: Sat, 24 Feb 2024 23:50:24 -0500 Subject: [PATCH] Update update_ota_repo.yml --- .github/workflows/update_ota_repo.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update_ota_repo.yml b/.github/workflows/update_ota_repo.yml index e5c8dccb..c140790f 100644 --- a/.github/workflows/update_ota_repo.yml +++ b/.github/workflows/update_ota_repo.yml @@ -46,24 +46,23 @@ jobs: if: steps.get-release.outputs.url run: | curl -L "${{ steps.get-release.outputs.url }}" -o firmware.zip - unzip firmware.zip -d firmware + unzip firmware.zip -d firmware - name: Process Version and Files run: | VERSION_TAG="${{ steps.get-release.outputs.tag_name }}" PROCESSED_VERSION="${VERSION_TAG%-*}" - echo $PROCESSED_VERSION > OTAUpdates/version.txt - cp firmware/*.bin OTAUpdates/ - # This assumes the archive directly contains firmware.bin and littlefs.bin + echo $PROCESSED_VERSION > version.txt + cp firmware/*.bin ./ + working-directory: ./OTAUpdates - name: Commit and Push Updates to OTAUpdates Repository uses: EndBug/add-and-commit@v7 with: - repository: 'doudar/OTAUpdates' default_author: github_actions message: 'Update firmware and LittleFS with version ${{ steps.get-release.outputs.tag_name }}' - add: 'OTAUpdates/*' - cwd: 'OTAUpdates' + add: './*' + cwd: './OTAUpdates' pull_strategy: 'NO-PULL' push: true env: