Skip to content

Commit 8dc6906

Browse files
authored
fix: workflow syntax failures (#69)
1 parent 0ddc031 commit 8dc6906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update-checksums.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
return existingRef.object.sha;
7878
} catch (err) {
7979
if (err.status !== 404) {
80-
core.setFailed("Failed to get existing pull request reference: ${err}");
80+
core.setFailed(`Failed to get existing pull request reference: ${err}`);
8181
core.error(err);
8282
process.exit(1);
8383
}
@@ -94,7 +94,7 @@ jobs:
9494
`
9595
);
9696
97-
const newRef = await github.rest.git.createRef({
97+
const { data: newRef } = await github.rest.git.createRef({
9898
owner: context.repo.owner,
9999
repo: context.repo.repo,
100100
ref: pullRequestFullRef,
@@ -104,7 +104,7 @@ jobs:
104104
return newRef.object.sha;
105105
} catch (err) {
106106
core.setFailed(
107-
"Failed to create/update pull request branch reference: ${err}"
107+
`Failed to create/update pull request branch reference: ${err}`
108108
);
109109
core.error(err);
110110
}
@@ -190,7 +190,7 @@ jobs:
190190
});
191191
} catch (err) {
192192
core.error(err);
193-
core.setFailed("Failed to create commits for pull request branch: ${err}");
193+
core.setFailed(`Failed to create commits for pull request branch: ${err}`);
194194
}
195195
196196
- name: 'Create/Update Pull Request'

0 commit comments

Comments
 (0)