fix: build image ci (#4929)
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase Backend Test / sqlite-test (20, false) (push) Waiting to run
NocoBase Backend Test / sqlite-test (20, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (public, 20, public, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, nocobase, true) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, false) (push) Waiting to run
NocoBase Backend Test / postgres-test (user_schema, 20, public, true) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, false) (push) Waiting to run
NocoBase Backend Test / mysql-test (20, true) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, false) (push) Waiting to run
NocoBase Backend Test / mariadb-test (20, true) (push) Waiting to run
Test on Windows / build (push) Waiting to run

* fix: ci

* fix: ci
This commit is contained in:
chenos 2024-07-22 17:28:48 +08:00 committed by GitHub
parent d9e972a0f3
commit e9443574d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@ on:
branches: branches:
- 'main' - 'main'
- 'next' - 'next'
- 'next-test'
paths: paths:
- 'packages/**' - 'packages/**'
- 'docker/nocobase/**' - 'docker/nocobase/**'
@ -36,15 +37,19 @@ jobs:
repository: nocobase/pro-plugins repository: nocobase/pro-plugins
ref: main ref: main
path: packages/pro-plugins path: packages/pro-plugins
fetch-depth: 0
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }} ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
- name: Fetch all branches - run: |
run: cd packages/pro-plugins && git fetch --all cd packages/pro-plugins &&
- name: git checkout ${{ github.event.pull_request.base.ref }} if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }} git checkout ${{ github.head_ref || github.ref_name }}
continue-on-error: true else
- name: git checkout ${{ github.head_ref || github.ref_name }} if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
run: cd packages/pro-plugins && git checkout ${{ github.head_ref || github.ref_name }} git checkout ${{ github.event.pull_request.base.ref }}
continue-on-error: true else
git checkout main
fi
fi
- name: rm .git - name: rm .git
run: rm -rf packages/pro-plugins/.git && git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git add -A && git commit -m "tmp commit" run: rm -rf packages/pro-plugins/.git && git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git add -A && git commit -m "tmp commit"
- name: Set up QEMU - name: Set up QEMU