mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
enhance: prevent deploy when e2e failed
This commit is contained in:
8
.github/workflows/clj-e2e.yml
vendored
8
.github/workflows/clj-e2e.yml
vendored
@@ -92,3 +92,11 @@ jobs:
|
||||
name: e2e-screenshots
|
||||
path: clj-e2e/e2e-dump/*
|
||||
retention-days: 1
|
||||
|
||||
- name: Mark success
|
||||
if: ${{ success() }}
|
||||
run: echo "E2E OK" > e2e-success.txt
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: e2e-success
|
||||
path: e2e-success.txt
|
||||
|
||||
13
.github/workflows/deploy-db-test-pages.yml
vendored
13
.github/workflows/deploy-db-test-pages.yml
vendored
@@ -14,6 +14,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: e2e-success
|
||||
path: .
|
||||
continue-on-error: true
|
||||
|
||||
- name: Check E2E success
|
||||
run: |
|
||||
if [ ! -f e2e-success.txt ]; then
|
||||
echo "❌ E2E tests did not succeed — aborting release."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java JDK
|
||||
|
||||
Reference in New Issue
Block a user