Skip to content

Commit

Permalink
ci: use single-line json
Browse files Browse the repository at this point in the history
  • Loading branch information
niki-timofe committed Mar 30, 2023
1 parent 9b69b82 commit 7adcd1d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ jobs:
repository: flipperdevices/flipperzero-ufbt
ref: refs/heads/dev
path: tools
- run: echo "$GITHUB_WORKSPACE/tools" >> $GITHUB_PATH
- run: |
echo "$GITHUB_WORKSPACE/tools" >> $GITHUB_PATH
- uses: actions/cache@v3
id: cache-ufbt
with:
path: tools/.ufbt
key: ${{ runner.os }}-${{ matrix.channel }}-ufbt
- run: ufbt update --channel=${{ matrix.channel }}
- run: ufbt
- run: |
ufbt update --channel=${{ matrix.channel }}
- run: |
ufbt
- uses: actions/upload-artifact@v3
with:
name: app.${{ matrix.channel }}
Expand All @@ -61,12 +64,8 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: app.release
- run: ls -R
- run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "SDK_STATE<<$EOF" >> $GITHUB_ENV
cat tools/.ufbt/current/sdk_state.json >> $GITHUB_ENV
echo "$EOF" >> $GITHUB_ENV
echo "SDK_STATE=$(awk 1 ORS='' tools/.ufbt/current/sdk_state.json)" >> $GITHUB_ENV
- run: |
echo "Flipper firmware version: ${{ fromJson(env.SDK_STATE).meta.version }}" >> release.txt
- uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 7adcd1d

Please sign in to comment.