diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml index 367b4809..57eb27c9 100644 --- a/.github/workflows/pio.yml +++ b/.github/workflows/pio.yml @@ -23,7 +23,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 '.[][0]' | grep 'env:'| awk -F: '{ print $2})" >> $GITHUB_OUTPUT outputs: environments: ${{ steps.envs.outputs.environments }}