From 50a608a7d90e0ac4633b0994664cd0bd68107fbc Mon Sep 17 00:00:00 2001 From: aramissennyeydd Date: Mon, 27 May 2024 21:12:24 -0400 Subject: [PATCH] workflows: clone events.json locally Signed-off-by: aramissennyeydd --- .github/workflows/api-breaking-changes.yml | 6 +++++- .github/workflows/uffizzi-build.yml | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api-breaking-changes.yml b/.github/workflows/api-breaking-changes.yml index ddf8bde41d..4a470290cd 100644 --- a/.github/workflows/api-breaking-changes.yml +++ b/.github/workflows/api-breaking-changes.yml @@ -41,13 +41,17 @@ jobs: run: | yarn backstage-repo-tools repo schema openapi check --since origin/${{ github.base_ref }} > comment.md + - name: clone github events.json to local path + run: | + cat ${{ github.event_path }} > events.json + - name: Upload Artifacts uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 with: name: preview-spec path: | comment.md - ${{ github.event_path }} + events.json retention-days: 2 overwrite: true diff --git a/.github/workflows/uffizzi-build.yml b/.github/workflows/uffizzi-build.yml index 3542858273..b981b46e0a 100644 --- a/.github/workflows/uffizzi-build.yml +++ b/.github/workflows/uffizzi-build.yml @@ -97,13 +97,18 @@ jobs: kustomize edit set image backstage=${{ needs.build-backstage.outputs.tags }} kustomize build . > manifests.rendered.yml cat manifests.rendered.yml + + - name: clone github events.json locally + run: | + cat ${{ github.event_path }} > events.json + - name: Upload Artifacts uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 with: name: preview-spec path: | ./.github/uffizzi/k8s/manifests/manifests.rendered.yml - ${{ github.event_path }} + events.json retention-days: 2 overwrite: true