From 405dc38c31a17f4eecf337e7b4ce604b4a78a364 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 12 Jul 2023 14:59:01 -0600 Subject: [PATCH] Fix GitHub bot workflow --- .github/workflows/deps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml index 24b3a6301..707247b78 100644 --- a/.github/workflows/deps.yml +++ b/.github/workflows/deps.yml @@ -30,7 +30,7 @@ jobs: run: git diff --exit-code --compact-summary id: no_change - name: create branch - if: ${{ steps.no_change.conclusion == 'failure' }} + if: ${{ failure() && steps.no_change.conclusion == 'failure' }} run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' @@ -40,7 +40,7 @@ jobs: git commit -m "spack updates" git push -f --set-upstream origin github-bot/update_spackages - name: create pull request - if: ${{ steps.no_change.conclusion == 'failure' }} + if: ${{ failure() && steps.no_change.conclusion == 'failure' }} run: gh pr create -B main -H github-bot/update_spackages --title 'Update spackages' --body 'Created by Github action' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}