-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
1 changed file
with
8 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
||
|
@@ -130,32 +125,24 @@ jobs: | |
cd releases | ||
git config --local user.email "[email protected]" | ||
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 }} |