Merge pull request #24937 from aramissennyeydd/openapi-tooling/artifact-uploads

fix(ci): workflow files aren't saving artifacts as expected
This commit is contained in:
Ben Lambert
2024-05-28 13:51:00 +02:00
committed by GitHub
2 changed files with 18 additions and 19 deletions
+8 -10
View File
@@ -41,18 +41,16 @@ jobs:
run: |
yarn backstage-repo-tools repo schema openapi diff --since origin/${{ github.base_ref }} > comment.md
- name: Upload Rendered Comment as Artifact
- name: clone artifacts to current directory
run: |
cat ${{ github.event_path }} > event.json
- name: Upload Artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: preview-spec
path: comment.md
retention-days: 2
overwrite: true
- name: Upload PR Event as Artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: preview-spec
path: ${{ github.event_path }}
path: |
comment.md
event.json
retention-days: 2
overwrite: true
+10 -9
View File
@@ -97,18 +97,19 @@ jobs:
kustomize edit set image backstage=${{ needs.build-backstage.outputs.tags }}
kustomize build . > manifests.rendered.yml
cat manifests.rendered.yml
- name: Upload Rendered Manifests File as Artifact
- name: clone artifacts into current directory
run: |
cat ${{ github.event_path }} > event.json
cp ./.github/uffizzi/k8s/manifests/manifests.rendered.yml manifests.rendered.yml
- name: Upload Artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: preview-spec
path: ./.github/uffizzi/k8s/manifests/manifests.rendered.yml
retention-days: 2
overwrite: true
- name: Upload PR Event as Artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: preview-spec
path: ${{ github.event_path }}
path: |
manifests.rendered.yml
event.json
retention-days: 2
overwrite: true