-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
9db0cf3
commit 323133a
Showing
2 changed files
with
4 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 |
---|---|---|
|
@@ -92,14 +92,10 @@ jobs: | |
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Determine ref | ||
id: determine_ref | ||
- name: 🔍 Determine ref - ESPHome packages | ||
if: ${{ !contains(fromJSON('["workflow_dispatch", "release", "workflow_call"]'), github.event_name) }} | ||
run: | | ||
if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then | ||
sed -i "s/ref: .*/ref: ${{ github.head_ref || 'klaas-2024-035' }}/g" ${{ matrix.firmware }}/${{ matrix.device }}.yaml | ||
else | ||
echo "Skipping sed command because the branch is main." | ||
fi | ||
sed -i "s/ref: .*/ref: ${{ github.head_ref || 'klaas-2024-035' }}/g" ${{ matrix.firmware }}/${{ matrix.device }}.yaml | ||
- name: 🧪 Display changed YAML file | ||
run: cat ${{ matrix.firmware }}/${{ matrix.device }}.yaml | ||
- name: 🔨 Build firmware | ||
|
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