Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
egparedes committed Jan 23, 2025
1 parent ce3880e commit 02bb13b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/daily-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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>."
}
}
]
Expand Down

0 comments on commit 02bb13b

Please sign in to comment.