File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,27 +83,29 @@ jobs:
83
83
let source = await readFile(s, 'utf-8');
84
84
let pattern = await readFile(p, 'utf-8');
85
85
let replacement = await readFile(r, 'utf-8');
86
+ if (!source.includes(pattern)) process.exit(1);
86
87
let updated = source.replace(pattern, replacement);
87
88
await writeFile(s, updated);
88
89
EOF
89
90
90
91
cat << EOF > old.txt
91
- internal_erlang_from_http_archive (
92
+ internal_erlang_from_github_release (
92
93
name = "${{ matrix.name }}",
93
94
sha256 = "${OLD_SHA}",
94
95
version = "${OLD_VERSION}",
95
96
),
96
97
EOF
97
98
98
99
cat << EOF > new.txt
99
- internal_erlang_from_http_archive (
100
+ internal_erlang_from_github_release (
100
101
name = "${{ matrix.name }}",
101
102
sha256 = "${{ steps.fetch-version.outputs.SHA }}",
102
103
version = "${{ steps.fetch-version.outputs.VERSION }}",
103
104
),
104
105
EOF
105
106
106
107
node replacer.mjs WORKSPACE old.txt new.txt
108
+ rm replacer.mjs old.txt new.txt
107
109
108
110
set -x
109
111
git diff
You can’t perform that action at this time.
0 commit comments