From 6cc8985413066592d00a1054ca19629f73af6a39 Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Tue, 21 Mar 2023 13:05:20 +0000 Subject: [PATCH] fix: permission denied issue with shell script - add group concurrency - add write permissions --- .github/workflows/build_release_bins.yml | 29 +++++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_release_bins.yml b/.github/workflows/build_release_bins.yml index c2c68ac..4e58bb5 100644 --- a/.github/workflows/build_release_bins.yml +++ b/.github/workflows/build_release_bins.yml @@ -1,6 +1,9 @@ name: Build and Release the OpenIris bin files on: + workflow_dispatch: push: + tags: + - "v*" branches: - "master" - "main" @@ -8,14 +11,24 @@ on: branches: - "master" - "main" - workflow_dispatch: + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +permissions: + contents: write + jobs: build: strategy: fail-fast: false matrix: - target_name: [esp32AIThinker, esp32M5Stack, esp32Cam, esp_eye, wrover, wrovers3] - target_build_type: ["", _release] #, _OTA] # OTA is not needed + target_name: + [esp32AIThinker, esp32M5Stack, esp32Cam, esp_eye, wrover, wrovers3] + target_build_type: ["", _release] #, _OTA] # OTA is not needed runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -40,7 +53,7 @@ jobs: # python-version: "3.x" #- name: Install PlatformIO with Pip # run: | -# + # # python -m pip install --upgrade pip # pip install distro # pip install --upgrade platformio @@ -109,12 +122,16 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: semantic-release + run: | + sudo apt-get install -y jq + chmod +x ./repo-tools/scripts/prepareCMD.sh + semantic-release cleanup: strategy: fail-fast: false matrix: - target_name: [esp32AIThinker, esp32M5Stack, esp32Cam, esp_eye, wrover, wrovers3] + target_name: + [esp32AIThinker, esp32M5Stack, esp32Cam, esp_eye, wrover, wrovers3] target_build_type: ["", _release] name: Cleanup actions needs: