Skip to content

Commit 07c9350

Browse files
committed
ci: try to fix diff-to-us
1 parent 4161018 commit 07c9350

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/std.yml

+35-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,30 @@ 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+
pull-requests: write
40+
steps:
41+
- name: Post Comment on the PR
42+
uses: actions/github-script@v5
43+
with:
44+
script: |
45+
const output = 'Hello, World!';
46+
github.rest.issues.createComment({
47+
issue_number: context.issue.number,
48+
owner: context.repo.owner,
49+
repo: context.repo.repo,
50+
body: output,
51+
});
52+
53+
3054
discover:
3155
outputs:
3256
hits: ${{ steps.discovery.outputs.hits }}
@@ -112,8 +136,12 @@ jobs:
112136

113137
diff-to-us:
114138
needs: images
115-
name: Comment with a Plan Diff (${{ github.ref_name }})
139+
name: Comment with a Diff (${{ github.ref_name }})
116140
if: github.event_name == 'pull_request' && (github.base_ref == 'dev-preview' || github.head_ref == 'chore/LW-9879-lace-ops-to-sdk')
141+
permissions:
142+
id-token: write
143+
contents: read
144+
pull-requests: write
117145
runs-on: ubuntu-22.04
118146
steps:
119147
- uses: actions/checkout@v4
@@ -128,7 +156,9 @@ jobs:
128156

129157
- name: Generate the Diff
130158
run: |
131-
nix develop -L --command bash -c '
159+
echo 'export K8S_USER=eks-devs' >.envrc.local
160+
161+
nix develop .#x86_64-linux.local.envs.main -L --command bash -c '
132162
set -euo pipefail
133163
134164
nix run -L ".#[email protected]" 2&1 \
@@ -176,7 +206,9 @@ jobs:
176206
run: |
177207
echo "Will deploy ‘${{ github.sha }}’ to ‘${{ github.ref_name }}’"
178208
179-
nix develop -L --command bash -c '
209+
echo 'export K8S_USER=eks-devs' >.envrc.local
210+
211+
nix develop .#x86_64-linux.local.envs.main -L --command bash -c '
180212
set -euo pipefail
181213
182214
echo yes | nix run -L ".#helm.x86_64-linux.${{ github.ref_name }}@us-east-1.apply"

0 commit comments

Comments
 (0)