We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50acba3 commit 2637469Copy full SHA for 2637469
.github/workflows/std.yml
@@ -178,17 +178,9 @@ jobs:
178
nix run -L ".#[email protected]" | tee k8s-plan.diff
179
'
180
- name: Post Comment on the PR
181
- uses: actions/github-script@v5
182
- with:
183
- script: |
184
- const fs = require('fs');
185
- const output = fs.readFileSync('k8s-plan.diff', 'utf8');
186
- github.rest.issues.createComment({
187
- issue_number: context.issue.number,
188
- owner: context.repo.owner,
189
- repo: context.repo.repo,
190
- body: "```diff\n" + output + "\n```\n",
191
- });
+ run: |
+ prNumber=$(cut -d/ -f1 <<<'${{ github.ref_name }}')
+ gh pr comment "$prNumber" --body "$(sed -e '2i\\n```diff' -e '$a```' k8s-plan.diff)"
192
193
194
deploy-to-us:
0 commit comments