Skip to content

Commit 00d1b20

Browse files
author
bweigel
committed
fix: encoding
1 parent a307dac commit 00d1b20

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/update.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,33 @@ jobs:
1111
- uses: actions/github-script@v6
1212
id: tesseract
1313
with:
14+
result-encoding: string
1415
script: |
1516
const latest = (await github.rest.repos.getLatestRelease({
1617
owner: 'tesseract-ocr',
1718
repo: 'tesseract',
1819
})).data.tag_name;
1920
return latest;
21+
2022
- uses: actions/github-script@v6
2123
id: leptonica
2224
with:
25+
result-encoding: string
2326
script: |
2427
const latest = (await github.rest.repos.getLatestRelease({
2528
owner: 'DanBloomberg',
2629
repo: 'leptonica',
2730
})).data.tag_name;
2831
return latest;
29-
result-encoding: string
3032
- uses: actions/checkout@v3
3133
with:
3234
fetch-depth: 1
3335
- name: update-dockerfile
3436
run: |
35-
sed -i 's/\(TESSERACT_VERSION=\).*$/\1${{ steps.tesseract.outputs.result }}/g' Dockerfile.al1
36-
sed -i 's/\(TESSERACT_VERSION=\).*$/\1${{ steps.tesseract.outputs.result }}/g' Dockerfile.al2
37-
sed -i 's/\(LEPTONICA_VERSION=\).*$/\1${{ steps.leptonica.outputs.result }}/g' Dockerfile.al1
38-
sed -i 's/\(LEPTONICA_VERSION=\).*$/\1${{ steps.leptonica.outputs.result }}/g' Dockerfile.al2
37+
sed -i 's/\(TESSERACT_VERSION=\)\[\d\.]*$/\1${{ steps.tesseract.outputs.result }}/g' Dockerfile.al1
38+
sed -i 's/\(TESSERACT_VERSION=\)[\d\.]*$/\1${{ steps.tesseract.outputs.result }}/g' Dockerfile.al2
39+
sed -i 's/\(LEPTONICA_VERSION=\)[\d\.]*$/\1${{ steps.leptonica.outputs.result }}/g' Dockerfile.al1
40+
sed -i 's/\(LEPTONICA_VERSION=\)[\d\.]*$/\1${{ steps.leptonica.outputs.result }}/g' Dockerfile.al2
3941
- name: Create Pull Request
4042
uses: peter-evans/create-pull-request@v4
4143
with:

0 commit comments

Comments
 (0)