From a21079913d125ab6cce6dec9b48454c6e948454b Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 6 Dec 2023 20:16:46 -0500 Subject: [PATCH] skip pushing when an action is triggered by dependeabot (#3035) See https://github.com/deepmodeling/deepmd-kit/pull/3029 See also https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events Signed-off-by: Jinzhe Zeng --- .github/workflows/build_wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index c58a5925bf..ad4a17cfea 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -149,7 +149,7 @@ jobs: uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 with: context: source/install/docker - push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' }} + push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }} tags: ${{ steps.meta.outputs.tags }}${{ matrix.variant }} labels: ${{ steps.meta.outputs.labels }} build-args: |