-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d43f5f2
commit d2b3ec7
Showing
1 changed file
with
12 additions
and
3 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 |
---|---|---|
|
@@ -162,17 +162,26 @@ jobs: | |
ref: main | ||
path: home-assistant-addon | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
|
||
- name: Short SHA | ||
shell: bash | ||
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV | ||
|
||
- name: Update version in config.yaml | ||
run: | | ||
cd home-assistant-addon/frameos | ||
echo "Updating version in config.yaml to main-${{ env.SHORT_SHA }}" | ||
sed -i "s/^version: .*/version: main-${{ env.SHORT_SHA }}/" config.yaml | ||
echo "Updating version in config.yaml to ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}" | ||
sed -i "s/^version: .*/version: ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}/" config.yaml | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "Update FrameOS version to main-${{ env.SHORT_SHA }}" | ||
message: "Update FrameOS version to ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}" | ||
add: "." | ||
cwd: home-assistant-addon | ||
push: true | ||
author_name: FrameOS Bot | ||
author_email: [email protected] | ||
|