generated from NebraLtd/hnt_openfleet_template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenFleet core files (production)
- Loading branch information
1 parent
e21d1e7
commit b9200a9
Showing
2 changed files
with
17 additions
and
8 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: BalenaCloud App Deploy | |
|
||
on: | ||
repository_dispatch: | ||
types: [build-open-fleet] | ||
types: [build-balena-app] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -11,15 +11,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Export short SHA of current commit | ||
- name: Export miner type from repo | ||
run: | | ||
FIRMWARE_SHORT_HASH=$( echo ${GITHUB_SHA:0:7} ) | ||
echo "FIRMWARE_SHORT_HASH=$FIRMWARE_SHORT_HASH" >> $GITHUB_ENV | ||
miner="$(echo ${{ github.event.repository.name }} | cut -d '-' -f2-)" | ||
echo "$miner" | ||
echo "miner=$miner" >> $GITHUB_ENV | ||
- name: Random sleep (balena API workaround) | ||
run: sleep $[ ( $RANDOM % 360 ) + 1 ]s | ||
run: sleep $[ ( $RANDOM % 600 ) + 1 ]s | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
with: | ||
|
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