File tree 2 files changed +23
-8
lines changed
2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -460,14 +460,23 @@ jobs:
460
460
"https://api.github.com/repos/${REPO}/actions/runs/${PREVIOUS_RUN_ID}/jobs" \
461
461
| jq -r --arg JOB_NAME "$JOB_NAME" '.jobs[] | select(.name == $JOB_NAME) | .conclusion')
462
462
463
- echo "previous_status=${PREVIOUS_STATUS}" >> $GITHUB_OUTPUT
463
+ echo "previous_status=${PREVIOUS_STATUS}"
464
+
465
+ if [[ -z "$PREVIOUS_STATUS" ]]; then
466
+ echo "notify_step=false" >> $GITHUB_ENV
467
+ exit 0
468
+ fi
469
+
470
+ if [[ "$PREVIOUS_STATUS" == "failure" && "$APP_STATUS" == "success" ]]; then
471
+ echo "notify_step=true" >> $GITHUB_ENV
472
+ elif [[ "$PREVIOUS_STATUS" == "success" && "$APP_STATUS" == "failure" ]]; then
473
+ echo "notify_step=true" >> $GITHUB_ENV
474
+ else
475
+ echo "notify_step=false" >> $GITHUB_ENV
476
+ fi
477
+
464
478
- name : Notify Slack
465
- if : |
466
- inputs.sendNotifications == true &&
467
- (
468
- (env.app_status == 'true' && steps.previous-run.outputs.previous_status == 'failure') ||
469
- (env.app_status != 'true' && steps.previous-run.outputs.previous_status == 'success')
470
- )
479
+ if : ${{ inputs.sendNotifications == 'true' && env.notify_step == 'true' }}
471
480
uses : rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # v2.3.2
472
481
env :
473
482
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
Original file line number Diff line number Diff line change 5
5
6
6
BINARY_PATH=$( find $( go env GOPATH) /bin | grep $BINARY_NAME | tail -n 1)
7
7
8
+ # Rename the binary as makefile is not consistent
9
+ mv " ${BINARY_PATH} " " ${BINARY_PATH} v2"
10
+
8
11
# Set the timeout to 60 seconds
9
12
TIMEOUT=60
10
13
START_TIME=$( date +%s)
11
14
12
15
cd ${MATRIX_APP_REPOSITORY}
13
16
make init-simapp-v2
17
+
18
+ # Rename the binary as makefile is not consistent
19
+ mv " ${BINARY_PATH} v2" " ${BINARY_PATH} "
14
20
${BINARY_PATH} start > ./output.log 2> 1 &
15
21
APP_PID=$!
16
22
@@ -27,7 +33,7 @@ while true; do
27
33
fi
28
34
29
35
# Check that 4th block is produced to validate the application
30
- if ${BINARY_PATH} query comet block --type=height 4; then
36
+ if ${BINARY_PATH} query block --type=height 4; then
31
37
echo " Block #4 has been committed. Application is working correctly."
32
38
kill $APP_PID
33
39
exit 0
You can’t perform that action at this time.
0 commit comments