|
|
|
@ -64,17 +64,11 @@ jobs:
|
|
|
|
|
name: preview-spec
|
|
|
|
|
path: docker-compose.rendered.yml
|
|
|
|
|
retention-days: 2
|
|
|
|
|
- name: Serialize PR Event to File
|
|
|
|
|
run: |
|
|
|
|
|
cat << EOF > event.json
|
|
|
|
|
${{ toJSON(github.event) }}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
- name: Upload PR Event as Artifact
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: preview-spec
|
|
|
|
|
path: event.json
|
|
|
|
|
path: ${{github.event_path}}
|
|
|
|
|
retention-days: 2
|
|
|
|
|
|
|
|
|
|
delete-preview:
|
|
|
|
@ -83,15 +77,9 @@ jobs:
|
|
|
|
|
if: ${{ github.event.action == 'closed' }}
|
|
|
|
|
steps:
|
|
|
|
|
# If this PR is closing, we will not render a compose file nor pass it to the next workflow.
|
|
|
|
|
- name: Serialize PR Event to File
|
|
|
|
|
run: |
|
|
|
|
|
cat << EOF > event.json
|
|
|
|
|
${{ toJSON(github.event) }}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
- name: Upload PR Event as Artifact
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: preview-spec
|
|
|
|
|
path: event.json
|
|
|
|
|
path: ${{github.event_path}}
|
|
|
|
|
retention-days: 2
|
|
|
|
|