@@ -27,6 +27,30 @@ 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
+ 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
+
30
54
discover :
31
55
outputs :
32
56
hits : ${{ steps.discovery.outputs.hits }}
@@ -112,8 +136,12 @@ jobs:
112
136
113
137
diff-to-us :
114
138
needs : images
115
- name : Comment with a Plan Diff (${{ github.ref_name }})
139
+ name : Comment with a Diff (${{ github.ref_name }})
116
140
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
117
145
runs-on : ubuntu-22.04
118
146
steps :
119
147
- uses : actions/checkout@v4
@@ -128,7 +156,9 @@ jobs:
128
156
129
157
- name : Generate the Diff
130
158
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 '
132
162
set -euo pipefail
133
163
134
164
nix run -L ".#[email protected] " 2&1 \
@@ -176,7 +206,9 @@ jobs:
176
206
run : |
177
207
echo "Will deploy ‘${{ github.sha }}’ to ‘${{ github.ref_name }}’"
178
208
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 '
180
212
set -euo pipefail
181
213
182
214
echo yes | nix run -L ".#helm.x86_64-linux.${{ github.ref_name }}@us-east-1.apply"
0 commit comments