File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,33 @@ jobs:
11
11
- uses : actions/github-script@v6
12
12
id : tesseract
13
13
with :
14
+ result-encoding : string
14
15
script : |
15
16
const latest = (await github.rest.repos.getLatestRelease({
16
17
owner: 'tesseract-ocr',
17
18
repo: 'tesseract',
18
19
})).data.tag_name;
19
20
return latest;
21
+
20
22
- uses : actions/github-script@v6
21
23
id : leptonica
22
24
with :
25
+ result-encoding : string
23
26
script : |
24
27
const latest = (await github.rest.repos.getLatestRelease({
25
28
owner: 'DanBloomberg',
26
29
repo: 'leptonica',
27
30
})).data.tag_name;
28
31
return latest;
29
- result-encoding : string
30
32
- uses : actions/checkout@v3
31
33
with :
32
34
fetch-depth : 1
33
35
- name : update-dockerfile
34
36
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
39
41
- name : Create Pull Request
40
42
uses : peter-evans/create-pull-request@v4
41
43
with :
You can’t perform that action at this time.
0 commit comments