Skip to content

Commit 0c70dc2

Browse files
committed
ci: try to fix diff-to-us
1 parent 4161018 commit 0c70dc2

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/std.yml

+37-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,31 @@ concurrency:
2727
group: std-${{ github.workflow }}-${{ github.ref }}
2828
cancel-in-progress: true
2929
jobs:
30+
31+
32+
test-comments:
33+
name: Test Posting a Comment
34+
if: github.event_name == 'pull_request'
35+
runs-on: ubuntu-22.04
36+
permissions:
37+
id-token: write
38+
contents: read
39+
issues: write
40+
pull_requests: write
41+
steps:
42+
- name: Post Comment on the PR
43+
uses: actions/github-script@v5
44+
with:
45+
script: |
46+
const output = 'Hello, World!';
47+
github.rest.issues.createComment({
48+
issue_number: context.issue.number,
49+
owner: context.repo.owner,
50+
repo: context.repo.repo,
51+
body: output,
52+
});
53+
54+
3055
discover:
3156
outputs:
3257
hits: ${{ steps.discovery.outputs.hits }}
@@ -112,8 +137,13 @@ jobs:
112137

113138
diff-to-us:
114139
needs: images
115-
name: Comment with a Plan Diff (${{ github.ref_name }})
140+
name: Comment with a Diff (${{ github.ref_name }})
116141
if: github.event_name == 'pull_request' && (github.base_ref == 'dev-preview' || github.head_ref == 'chore/LW-9879-lace-ops-to-sdk')
142+
permissions:
143+
id-token: write
144+
contents: read
145+
issues: write
146+
pull_requests: write
117147
runs-on: ubuntu-22.04
118148
steps:
119149
- uses: actions/checkout@v4
@@ -128,7 +158,9 @@ jobs:
128158

129159
- name: Generate the Diff
130160
run: |
131-
nix develop -L --command bash -c '
161+
echo 'export K8S_USER=eks-devs' >.envrc.local
162+
163+
nix develop .#x86_64-linux.local.envs.main -L --command bash -c '
132164
set -euo pipefail
133165
134166
nix run -L ".#[email protected]" 2&1 \
@@ -176,7 +208,9 @@ jobs:
176208
run: |
177209
echo "Will deploy ‘${{ github.sha }}’ to ‘${{ github.ref_name }}’"
178210
179-
nix develop -L --command bash -c '
211+
echo 'export K8S_USER=eks-devs' >.envrc.local
212+
213+
nix develop .#x86_64-linux.local.envs.main -L --command bash -c '
180214
set -euo pipefail
181215
182216
echo yes | nix run -L ".#helm.x86_64-linux.${{ github.ref_name }}@us-east-1.apply"

0 commit comments

Comments
 (0)