Skip to content

Commit

Permalink
20240609.1
Browse files Browse the repository at this point in the history
- Revert to on task in workflow to avoid error while GitHub output command
- Add detection of Zigbee role if none was previously selected.
- Fix "no ETH" hardware boards hangs during boot.
- Fix startup update check over WiFi (only when network is ready).
- Fix small network errors in USB mode.
- Enhance board configuration process: if multiple configurations are found, use the name Multi_X.
- Add modal window on the root page to choose the device model when the board name is Multi_X.
  • Loading branch information
xyzroe committed Jun 9, 2024
1 parent 61ac03e commit 9bb0c26
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/build_fw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
jobs:
build_release_push:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -75,8 +72,6 @@ jobs:
echo "commitMessage<<EOF" >> $GITHUB_ENV
printf "%s\n" "$commitMessage" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "${commitMessage}" > commit_message.txt
echo "commit_message=$(cat commit_message.txt)" >> $GITHUB_OUTPUT
env:
GITHUB_REF: ${{ github.ref }}

Expand Down Expand Up @@ -130,32 +125,24 @@ jobs:
cd releases
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "Add firmware and manifest for version ${{ steps.get_tag.outputs.tag }}"
git push origin releases
else
echo "No changes to commit"
fi
notify:
runs-on: ubuntu-latest
needs: build_release_push
steps:
git add .
git commit -m "Add firmware and manifest for version ${{ steps.get_tag.outputs.tag }}"
git push origin releases
- name: Send Telegram Notification about release
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: markdown
message: |
${{ needs.build_release_push.outputs.commit_message }}
${{ env.commitMessage }}
[${{ needs.build_release_push.outputs.tag }}](https://github.com/${{ github.repository }}/releases/tag/${{ needs.build_release_push.outputs.tag }})
[${{ steps.get_tag.outputs.tag }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.get_tag.outputs.tag }})
- name: Send Discord Notification about release
run: |
json_payload=$(jq -n --arg content "https://github.com/${{ github.repository }}/releases/tag/${{ needs.build_release_push.outputs.tag }}" '{content: $content}')
json_payload=$(jq -n --arg content "https://github.com/${{ github.repository }}/releases/tag/${{ steps.get_tag.outputs.tag }}" '{content: $content}')
curl -H "Content-Type: application/json" \
-d "$json_payload" \
${{ secrets.DISCORD_WEBHOOK }}
${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit 9bb0c26

Please sign in to comment.