Skip to content

Commit

Permalink
Move sed command to ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Feb 13, 2025
1 parent 885e4c4 commit f107f11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/action-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ jobs:
file: ${{ fromJson(needs.prepare.outputs.files) }}
steps:
- uses: actions/[email protected]
- name: Replace package_import_url branch
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
sed -i "s/@main/@$branch/g" ${{ matrix.file }}
- uses: esphome/[email protected]
id: esphome-build
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/workflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: Replace package_import_url branch to current dev branch
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo ${branch}
sed -i "s/@main/@${branch}/g" ./*factory.yaml
- name: Build ESPHome firmware to verify configuration
uses: esphome/[email protected]
id: esphome-build
Expand Down

0 comments on commit f107f11

Please sign in to comment.