Skip to content

Commit baafbef

Browse files
committed
replace sed with perl (it is already installed on the runners)
1 parent 6be6a97 commit baafbef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ jobs:
5858

5959
- name: Set the version
6060
working-directory: ${{ env.IMGTOOL_PACKING_PATH }}/patches/
61-
run: sed -i "s/ARDUINO_VERSION_PLACEHOLDER/${GITHUB_REF/refs\/tags\//}/" 0008-Imgtool-Append-arduino-to-version-string.patch
61+
run: perl -pi -e "s/ARDUINO_VERSION_PLACEHOLDER/${GITHUB_REF/refs\/tags\//}/g" 0008-Imgtool-Append-arduino-to-version-string.patch
6262

6363
- name: Apply patches
6464
working-directory: ${{ env.MCUBOOT_PATH }}/scripts/
65-
run: git apply -v "${{ env.IMGTOOL_PACKING_PATH }}/patches/"*
65+
run: git apply -v "${{ env.IMGTOOL_PACKING_PATH }}/patches/"*.patch
6666

6767
- name: Set up Python ${{ env.PYTHON_VERSION }}
6868
uses: actions/setup-python@v3
@@ -140,11 +140,11 @@ jobs:
140140

141141
- name: Set the version
142142
working-directory: ${{ env.IMGTOOL_PACKING_PATH }}/patches/
143-
run: sed -i "s/ARDUINO_VERSION_PLACEHOLDER/${GITHUB_REF/refs\/tags\//}/" 0008-Imgtool-Append-arduino-to-version-string.patch
143+
run: perl -pi -e "s/ARDUINO_VERSION_PLACEHOLDER/${GITHUB_REF/refs\/tags\//}/g" 0008-Imgtool-Append-arduino-to-version-string.patch
144144

145145
- name: Apply patches
146146
working-directory: ${{ env.MCUBOOT_PATH }}/scripts/
147-
run: git apply -v "${{ env.IMGTOOL_PACKING_PATH }}/patches/"*
147+
run: git apply -v "${{ env.IMGTOOL_PACKING_PATH }}/patches/"*.patch
148148

149149
- name: Set up QEMU
150150
uses: docker/setup-qemu-action@v2

0 commit comments

Comments
 (0)