fix: permission denied issue with shell script

- add group concurrency
- add write permissions
This commit is contained in:
ZanzyTHEbar 2023-03-21 13:05:20 +00:00
parent 78df34542f
commit 6cc8985413

View File

@ -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: