-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from OpenEVSE/jeremypoulter/issue259
Support for updating directly from GitHub
- Loading branch information
Showing
4 changed files
with
42 additions
and
9 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
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
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
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 |
---|---|---|
|
@@ -40,18 +40,24 @@ Content-Type: application/octet-stream | |
curl -F [email protected]/build/openevse_esp-wrover-kit/firmware.bin {{baseUrl}}/update | ||
|
||
### | ||
|
||
# Get the latest published relese (not pre-release) | ||
# @name latest | ||
GET https://api.github.com/repos/OpenEVSE/ESP32_WiFi_V4.x/releases/latest | ||
Accept: application/vnd.github.v3+json | ||
|
||
### | ||
# Get the latest pre-release | ||
# @name latest | ||
GET https://api.github.com/repos/OpenEVSE/ESP32_WiFi_V4.x/releases/tags/latest | ||
Accept: application/vnd.github.v3+json | ||
|
||
### | ||
|
||
POST {{baseUrl}}/update | ||
Content-Type: application/javascript | ||
|
||
{ | ||
"url": "{{latest.response.body.assets[1].browser_download_url}}" | ||
"url": "{{latest.response.body.assets[0].browser_download_url}}" | ||
} | ||
|
||
### | ||
|