Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

ci: check PR id in preview-deploy workflow (#509)

白熱aaea9601e974
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index 5984671160..400c06017c 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -28,6 +28,10 @@ jobs:
id: pr
run: echo "id=$(<pr-id.txt)" >> $GITHUB_OUTPUT
+ - name: check PR id
+ if: ${{ steps.pr.outputs.id != '' }}
+ run: exit 1
+
# Get PR branch name from artifact
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
@@ -38,12 +42,12 @@ jobs:
- name: save PR branch name
id: pr-branch-name
- run: echo "id=$(<pr-branch-name.txt)" >> $GITHUB_OUTPUT
+ run: echo "name=$(<pr-branch-name.txt)" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v3
with:
- ref: ${{ steps.pr-branch-name.outputs.id }}
+ ref: ${{ steps.pr-branch-name.outputs.name }}
- name: Setup workspace cache
uses: actions/cache@v3