Add separate property to platformio.ini to control the environments built by github actions

This is now independent of the default_envs which also affects local development
This commit is contained in:
Thomas Basler
2023-06-08 22:48:04 +02:00
parent 9ac1bb3409
commit abfc2735ba
2 changed files with 5 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ jobs:
- name: Get default environments
id: envs
run: |
echo "environments=$(pio project config --json-output | jq -cr '.[0][1][0][1]')" >> $GITHUB_OUTPUT
echo "environments=$(pio project config --json-output | jq -cr '.[1][1][0][1]|split(",")')" >> $GITHUB_OUTPUT
outputs:
environments: ${{ steps.envs.outputs.environments }}