-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
@@ -62,14 +69,14 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "if3 Weekly reminder to check the latest runs of the <https://github.com/GridTools/gt4py/actions/workflows/daily-ci.yml|GT4Py Daily CI> workflow at the <https://github.com/GridTools/gt4py/actions/|GitHub Actions dashboard>." | ||
"text": "if4 Weekly reminder to check the latest runs of the <https://github.com/GridTools/gt4py/actions/workflows/daily-ci.yml|GT4Py Daily CI> workflow at the <https://github.com/GridTools/gt4py/actions/|GitHub Actions dashboard>." | ||
} | ||
} | ||
] | ||
} | ||
- 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/[email protected] | ||
|
@@ -82,7 +89,7 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "ifnot3 Weekly reminder to check the latest runs of the <https://github.com/GridTools/gt4py/actions/workflows/daily-ci.yml|GT4Py Daily CI> workflow at the <https://github.com/GridTools/gt4py/actions/|GitHub Actions dashboard>." | ||
"text": "ifnot4 Weekly reminder to check the latest runs of the <https://github.com/GridTools/gt4py/actions/workflows/daily-ci.yml|GT4Py Daily CI> workflow at the <https://github.com/GridTools/gt4py/actions/|GitHub Actions dashboard>." | ||
} | ||
} | ||
] | ||
|