diff --git a/.github/workflows/daily-ci.yml b/.github/workflows/daily-ci.yml index 6722c137a5..70241d35e4 100644 --- a/.github/workflows/daily-ci.yml +++ b/.github/workflows/daily-ci.yml @@ -27,7 +27,14 @@ jobs: - name: Get day of the week id: day_of_the_week - run: echo "{day_of_the_week}={$(date +'%u')}" >> $GITHUB_STATE + run: | + echo "day_of_the_week=$(date +'%u')" + echo "day_of_the_week=$(date +'%u')" >> $GITHUB_STATE + + - name: Print day of the week + id: print_day_of_the_week + run: | + echo "${{ env.day_of_the_week }}" - name: Weekly notification env: @@ -49,7 +56,7 @@ jobs: } - name: Test with environment variables - if: ${{ env.day_of_the_week == '3' }} + if: ${{ env.day_of_the_week == 4 }} env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} uses: slackapi/slack-github-action@v1.23.0 @@ -62,14 +69,14 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "if3 Weekly reminder to check the latest runs of the workflow at the ." + "text": "if4 Weekly reminder to check the latest runs of the workflow at the ." } } ] } - name: Test not - if: ${{ env.day_of_the_week != '3' }} + if: ${{ env.day_of_the_week != 4 }} env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} uses: slackapi/slack-github-action@v1.23.0 @@ -82,7 +89,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "ifnot3 Weekly reminder to check the latest runs of the workflow at the ." + "text": "ifnot4 Weekly reminder to check the latest runs of the workflow at the ." } } ]