A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物
Python agent-memoryfinancial-forecastingfuture-predictionknowledge-graphllmsmulti-agent-simulationpublic-opinion-analysispython3social-predictionswarm-intelligence
ci: make manual Docker publishing opt-in
666ghj898f3b5beada
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.ymlindex 6ab55640..51ee5014 100644--- a/.github/workflows/docker-image.yml+++ b/.github/workflows/docker-image.yml@@ -4,6 +4,15 @@ on:push:tags: ["*"]workflow_dispatch:+ inputs:+ publish:+ description: Publish the image (default-branch runs only)+ required: false+ default: false+ type: boolean++env:+ SHOULD_PUBLISH: ${{ github.event_name == 'push' || (inputs.publish && github.ref_name == github.event.repository.default_branch) }}permissions:contents: read@@ -23,6 +32,7 @@ jobs:uses: docker/setup-buildx-action@v3- name: Log in to GHCR+ if: env.SHOULD_PUBLISH == 'true'uses: docker/login-action@v3with:registry: ghcr.io@@ -44,7 +54,7 @@ jobs:with:context: .file: ./Dockerfile- push: true+ push: ${{ env.SHOULD_PUBLISH == 'true' }}platforms: linux/amd64,linux/arm64tags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}