Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Dec 8, 2023
1 parent 721b86d commit de750c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/tugboat-pr-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ jobs:
- name: Set Preview ID
if: ${{ steps.docs-only.outputs.docs-only == 'false' }}
run: |
PREVIEW_ID=$(cat .tugboat_preview.txt)
if [ -z "$PREVIEW_ID" ]; then
if [ -f "$PREVIEW_ID" ]; then
echo "Preview ID not found, please manually delete Tugboat Preview."
exit 1
else
echo $PREVIEW_ID
echo "PREVIEW_ID=$PREVIEW_ID" >> $GITHUB_ENV
fi
PREVIEW_ID=$(cat .tugboat_preview.txt)
echo "Preview ID: ${PREVIEW_ID}"
echo "PREVIEW_ID=$PREVIEW_ID" >> $GITHUB_ENV
- name: Cleanup temporary file
if: ${{ steps.docs-only.outputs.docs-only == 'false' }}
run: rm .tugboat_preview.txt
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/tugboat-pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ jobs:
- name: Set Preview ID
if: ${{ steps.docs-only.outputs.docs-only == 'false' }}
run: |
PREVIEW_ID=$(cat .tugboat_preview.txt)
if [ -z "$PREVIEW_ID" ]; then
if [ -f "$PREVIEW_ID" ]; then
echo "Preview ID not found, please manually rebuild Tugboat Preview."
exit 1
else
echo $PREVIEW_ID
echo "PREVIEW_ID=$PREVIEW_ID" >> $GITHUB_ENV
fi
PREVIEW_ID=$(cat .tugboat_preview.txt)
echo "Preview ID: ${PREVIEW_ID}"
echo "PREVIEW_ID=$PREVIEW_ID" >> $GITHUB_ENV
- name: Cleanup temporary file
if: ${{ steps.docs-only.outputs.docs-only == 'false' }}
run: rm .tugboat_preview.txt
Expand Down

0 comments on commit de750c2

Please sign in to comment.