Skip to content

Commit

Permalink
updating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Feb 3, 2025
1 parent 87ba33f commit 50b8445
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/NightlyBMDB_CLI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<none>" | 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 "<none>" | awk '{print $3;}') execute-omex -i ${sim_input} -o ${sim_output} --timeout_ms=900000
echo "Done!"
# Grab Summary
echo -n "Obtaining Summary..."
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/NightlyPublished_CLI.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Nightly CLI Execution Tests (Published)
on:
schedule:
- cron: "0 7 * * *"
- cron: "0 6 * * *"
workflow_dispatch:

env:
Expand Down Expand Up @@ -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 }}",
Expand All @@ -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
Expand Down

0 comments on commit 50b8445

Please sign in to comment.