From 3232dec289cafe6a46ab954953466ba9cf6be2ff Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Tue, 19 Mar 2024 20:17:53 +0200 Subject: [PATCH] conditional push updates --- .github/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c6636e..3aa985f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,15 +26,16 @@ on: required: false type: boolean - skip_push_updates: - description: 'skip push updates' + ignore_cache: + description: 'ignore cache' required: false type: boolean - ignore_cache: - description: 'ignore cache' + skip_push_results: + description: 'skip push results' required: false type: boolean + # push: # branches: # - '*' @@ -115,10 +116,11 @@ jobs: run: for d in build/*/*.log; do echo === $d:; cat $d | perl -pe 's/(?:runbundler-)?(\S+?)(?:-1)?[\s|]+(\S+)/$2 $1 /' | sort ; done - name: Clone and update results repo + if: ${{ ! inputs.skip_push_results }} run: ./update-results.sh out-results - name: Push update to results repo - if: ${{ ! inputs.skip_push_updates }} + if: ${{ ! inputs.skip_push_results }} uses: cpina/github-action-push-to-another-repository@main env: SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}