Skip to content

Commit 0c82b4f

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 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.bak -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
@@ -144,7 +144,7 @@ jobs:
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)