Skip to content

Commit 40f258c

Browse files
authored
OPS-15 Report approval to to kosli (#40)
1 parent 3626410 commit 40f258c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release-to-prod.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,24 @@ jobs:
161161
run: |
162162
source scripts/lib-jira.sh
163163
set_release_to_released ${RELEASE_ID}
164+
165+
attest-approval:
166+
name: Attest approval
167+
needs: [set-to-released]
168+
runs-on: ubuntu-latest
169+
env:
170+
RELEASE_ID: ${{ needs.check-approved-release.outputs.release_id }}
171+
steps:
172+
- uses: actions/checkout@v4
173+
with:
174+
fetch-depth: 0
175+
176+
- name: Report approval to Kosli
177+
run: |
178+
source scripts/lib-jira.sh
179+
180+
get_release ${{ env.RELEASE_ID }} >> /tmp/jira-release.json
181+
kosli attest generic \
182+
--name release-approval \
183+
--trail ${{ env.RELEASE_ID }} \
184+
--user-data /tmp/jira-release.json

0 commit comments

Comments
 (0)