From 50b8445e6394dbdd31a77fc3a68e8486bef4a9c2 Mon Sep 17 00:00:00 2001 From: Logan Drescher Date: Mon, 3 Feb 2025 15:04:13 -0500 Subject: [PATCH] updating workflows --- .github/workflows/NightlyBMDB_CLI.yml | 2 +- .github/workflows/NightlyPublished_CLI.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/NightlyBMDB_CLI.yml b/.github/workflows/NightlyBMDB_CLI.yml index e446dd85fc..ae5df6a164 100644 --- a/.github/workflows/NightlyBMDB_CLI.yml +++ b/.github/workflows/NightlyBMDB_CLI.yml @@ -211,7 +211,7 @@ jobs: sim_input="/root/${base_name}" sim_output="/root/${base_extless_name}_output" echo -n "Running \"${file}\" in output folder \"${base_extless_name}_output\"..." - docker run -v $GITHUB_WORKSPACE/set_${{ matrix.sets }}:/root $(docker image ls | grep "" | awk '{print $3;}') execute-omex -i ${sim_input} -o ${sim_output} --timeout_ms=600000 + docker run -v $GITHUB_WORKSPACE/set_${{ matrix.sets }}:/root $(docker image ls | grep "" | awk '{print $3;}') execute-omex -i ${sim_input} -o ${sim_output} --timeout_ms=900000 echo "Done!" # Grab Summary echo -n "Obtaining Summary..." diff --git a/.github/workflows/NightlyPublished_CLI.yml b/.github/workflows/NightlyPublished_CLI.yml index 23e2eabddf..01acd4201b 100644 --- a/.github/workflows/NightlyPublished_CLI.yml +++ b/.github/workflows/NightlyPublished_CLI.yml @@ -1,7 +1,7 @@ name: Nightly CLI Execution Tests (Published) on: schedule: - - cron: "0 7 * * *" + - cron: "0 6 * * *" workflow_dispatch: env: @@ -380,7 +380,8 @@ jobs: - name: Post results to slack part 1 (report.md from exec-report CLI command) run: | - if [[ "$(cat ${GITHUB_WORKSPACE}/report.md) | wc -c | awk '{ print $1; }'" -lt "2970" ]]; then + echo "Word Count $(wc -c < ${GITHUB_WORKSPACE}/report.md)" + if [[ $(wc -c < ${GITHUB_WORKSPACE}/report.md) -lt 2970 ]]; then curl -X POST -H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}" -H "Content-type: application/json" \ --data '{ "channel": "${{ secrets.SLACK_CHANNEL_VCELL_DEV_TOKEN }}", @@ -397,7 +398,7 @@ jobs: else # Results too long to be formatted echo "Results too long to format with code block" - curl -X POST -F token="${{ secrets.SLACK_BOT_TOKEN }}" -F channel=${{ secrets.SLACK_CHANNEL_VCELL_DEV_TOKEN }} -F text="$(cat ${GITHUB_WORKSPACE}/report.md)" https://slack.com/api/chat.postMessage + curl -X POST -F token="${{ secrets.SLACK_BOT_TOKEN }}" -F channel=${{ secrets.SLACK_CHANNEL_VCELL_DEV_TOKEN }} -F text="Published Results:\n$(cat ${GITHUB_WORKSPACE}/report.md)" https://slack.com/api/chat.postMessage fi