Skip to content

Commit 92462a3

Browse files
committed
reall fix by adding id
1 parent 6e3e890 commit 92462a3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/my-workflow.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
1819
- name: ha-ha
20+
id: joke
1921
uses: ./.github/actions/joke-action
22+
2023
- name: Comment with joke
2124
uses: actions/github-script@v7
2225
with:
2326
script: |
24-
const joke = '${{ steps.ha-ha.outputs.joke-output }}';
27+
const joke = `${{ steps.joke.outputs.joke-output }}`;
2528
const issue_number = context.issue.number;
2629
github.rest.issues.createComment({
2730
owner: context.repo.owner,
2831
repo: context.repo.repo,
2932
issue_number,
3033
body: `😂 Here's a joke for you:\n\n${joke}`
31-
});
34+
});

0 commit comments

Comments
 (0)