@@ -128,17 +128,17 @@ jobs:
128128 needs : deploy-stage
129129 runs-on : ubuntu-latest
130130 steps :
131- - name : Get workflow run ID
132- id : get-run-id
133- run : echo "workflow_run_id=${{ github.run_id }}" >> $GITHUB_ENV
131+ # - name: Get workflow run ID
132+ # id: get-run-id
133+ # run: echo "workflow_run_id=${{ github.run_id }}" >> $GITHUB_ENV
134134
135135 - name : Get approval actor from audit log
136136 id : get-approver
137137 env :
138138 GH_TOKEN : ${{ secrets.READ_AUDIT_LOG }}
139139 OWNER : kosli-dev
140140 REPO : github-release-example
141- WORKFLOW_RUN_ID : ${{ github.run_id }}
141+ # WORKFLOW_RUN_ID: ${{ github.run_id }}
142142 run : |
143143 API_URL="https://api.github.com/orgs/${OWNER}/audit-log"
144144 MAX_PAGES=5
@@ -156,9 +156,7 @@ jobs:
156156 --data-urlencode "page=${PAGE}" \
157157 "$API_URL" > audit.json
158158
159- cat audit.json >> $GITHUB_STEP_SUMMARY
160-
161- MATCH=$(jq -r --arg run_id "$WORKFLOW_RUN_ID" '
159+ MATCH=$(jq -r --arg run_id ${{ github.run_id }} '
162160 .[] | select(.workflow_run_id == ($run_id | tonumber)) | .actor' audit.json)
163161
164162 if [[ -n "$MATCH" ]]; then
@@ -176,19 +174,6 @@ jobs:
176174 echo "approver=$APPROVER" >> $GITHUB_OUTPUT
177175 echo "### Approval Actor: $APPROVER" >> $GITHUB_STEP_SUMMARY
178176
179- cat audit.json >> $GITHUB_STEP_SUMMARY
180-
181- # APPROVER=$(jq -r --arg run_id "$WORKFLOW_RUN_ID" '
182- # map(select(.workflow_run_id | tostring == $run_id))
183- # | sort_by(.created_at)
184- # | reverse
185- # | .[0].actor // "unknown"
186- # ' audit.json)
187- #
188- # echo "Approver: $APPROVER"
189- # echo "approver=$APPROVER" >> $GITHUB_OUTPUT
190-
191-
192177 semver-tag :
193178 needs : [build,deploy-stage]
194179 name : Check for semver tag
@@ -227,7 +212,6 @@ jobs:
227212 -d "$JSON_PAYLOAD"
228213
229214
230-
231215 assert-artifact :
232216 name : Assert artifacts
233217 if : ${{ (github.event_name != 'workflow_dispatch' && needs.semver-tag.outputs.release-to-prod == 'true') }}
0 commit comments