Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: cancel previous build (#2794)

Alex Yang68c4fccf9830
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
new file mode 100644
index 0000000000..b521fbcd2a
--- /dev/null
+++ b/.github/workflows/cancel.yml
@@ -0,0 +1,17 @@
+name: Cancel
+on:
+ pull_request_target:
+ types:
+ - edited
+ - synchronize
+
+jobs:
+ cancel:
+ name: 'Cancel Previous Runs'
+ runs-on: ubuntu-latest
+ timeout-minutes: 2
+ steps:
+ - uses: styfle/[email protected]
+ with:
+ workflow_id: 44038251
+ access_token: ${{ github.token }}
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index 5c91d4b18b..d019068c0b 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -58,10 +58,6 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- API_SERVER_PROFILE: prod
- ENABLE_TEST_PROPERTIES: false
- ENABLE_BOOKMARK_OPERATION: true
- ENABLE_SQLITE_PROVIDER: false
RELEASE_VERSION: ${{ needs.set-build-version.outputs.version }}
- name: Upload Artifact (web-static)