Skip to content

Commit 168eae2

Browse files
committed
deploy-2-start.yml: Ported upload logic from generate-build-metadata.bash to inline script
1 parent 187d8ac commit 168eae2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy-2-start.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,12 @@ jobs:
189189
- name: Upload Build Metadata
190190
env:
191191
BUILD_DB_CONNECTION_STR: ${{ secrets.BUILD_DB_CONNECTION_STR }}
192-
run: ./scripts/upload-build-metadata.bash ${{ needs.release.outputs.url }} ${{ needs.release.outputs.created-at }} ${{ env.METADATA_PATH }} ${{ inputs.root-sbd }} ${{ vars.BUILD_DB_PACKAGES }}
192+
OUTPUT_PATH: ./metadata_output
193+
run: |
194+
./scripts/generate-build-metadata.bash ${{ needs.release.outputs.url }} ${{ needs.release.outputs.created-at }} ${{ env.METADATA_PATH }} ${{ env.OUTPUT_PATH }} ${{ inputs.root-sbd }} ${{ vars.BUILD_DB_PACKAGES }}
195+
196+
for json in ${{ env.OUTPUT_PATH }}/*.json; do
197+
echo "Attempting upload of $json"
198+
python ./tools/release_provenance/save_release.py "$json"
199+
done
200+

0 commit comments

Comments
 (0)