@@ -27,6 +27,31 @@ concurrency:
27
27
group : std-${{ github.workflow }}-${{ github.ref }}
28
28
cancel-in-progress : true
29
29
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
+
30
55
discover :
31
56
outputs :
32
57
hits : ${{ steps.discovery.outputs.hits }}
@@ -112,8 +137,13 @@ jobs:
112
137
113
138
diff-to-us :
114
139
needs : images
115
- name : Comment with a Plan Diff (${{ github.ref_name }})
140
+ name : Comment with a Diff (${{ github.ref_name }})
116
141
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
117
147
runs-on : ubuntu-22.04
118
148
steps :
119
149
- uses : actions/checkout@v4
@@ -128,7 +158,9 @@ jobs:
128
158
129
159
- name : Generate the Diff
130
160
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 '
132
164
set -euo pipefail
133
165
134
166
nix run -L ".#[email protected] " 2&1 \
@@ -176,7 +208,9 @@ jobs:
176
208
run : |
177
209
echo "Will deploy ‘${{ github.sha }}’ to ‘${{ github.ref_name }}’"
178
210
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 '
180
214
set -euo pipefail
181
215
182
216
echo yes | nix run -L ".#helm.x86_64-linux.${{ github.ref_name }}@us-east-1.apply"
0 commit comments