mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update Uffizzi Workflows (#1390)
* Update uffizzi-build.yml * Update uffizzi-preview.yml
This commit is contained in:
committed by
GitHub
parent
63e0716457
commit
27a1792e78
16
.github/workflows/uffizzi-build.yml
vendored
16
.github/workflows/uffizzi-build.yml
vendored
@@ -64,17 +64,11 @@ jobs:
|
|||||||
name: preview-spec
|
name: preview-spec
|
||||||
path: docker-compose.rendered.yml
|
path: docker-compose.rendered.yml
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
- name: Serialize PR Event to File
|
|
||||||
run: |
|
|
||||||
cat << EOF > event.json
|
|
||||||
${{ toJSON(github.event) }}
|
|
||||||
|
|
||||||
EOF
|
|
||||||
- name: Upload PR Event as Artifact
|
- name: Upload PR Event as Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: preview-spec
|
name: preview-spec
|
||||||
path: event.json
|
path: ${{github.event_path}}
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|
||||||
delete-preview:
|
delete-preview:
|
||||||
@@ -83,15 +77,9 @@ jobs:
|
|||||||
if: ${{ github.event.action == 'closed' }}
|
if: ${{ github.event.action == 'closed' }}
|
||||||
steps:
|
steps:
|
||||||
# If this PR is closing, we will not render a compose file nor pass it to the next workflow.
|
# 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
|
- name: Upload PR Event as Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: preview-spec
|
name: preview-spec
|
||||||
path: event.json
|
path: ${{github.event_path}}
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
2
.github/workflows/uffizzi-preview.yml
vendored
2
.github/workflows/uffizzi-preview.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo 'EVENT_JSON<<EOF' >> $GITHUB_ENV
|
echo 'EVENT_JSON<<EOF' >> $GITHUB_ENV
|
||||||
cat event.json >> $GITHUB_ENV
|
cat event.json >> $GITHUB_ENV
|
||||||
echo 'EOF' >> $GITHUB_ENV
|
echo -e '\nEOF' >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Hash Rendered Compose File
|
- name: Hash Rendered Compose File
|
||||||
id: hash
|
id: hash
|
||||||
|
Reference in New Issue
Block a user