Jellycat Check #4147
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
name: Jellycat Check | |
on: | |
schedule: | |
- cron: "0/12 * * * *" | |
push: | |
branches: [master] | |
jobs: | |
check: | |
name: Check jellycat availability | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
env: | |
cache-name: cache-jellycat | |
with: | |
path: ~/jellycat | |
key: jellycat | |
- name: Check version | |
id: check | |
run: bash .github/scripts/check_jellycat.sh amuseable-bouquet-of-flowers-a2bfl | |
- name: Send notification | |
uses: cinotify/github-action@main | |
if: ${{ steps.check.outputs.HAS_EMAIL == 1 }} | |
with: | |
to: ${{ secrets.JELLYCAT_EMAIL1 }} | |
subject: ${{ steps.check.outputs.EMAIL_TITLE }} | |
body: ${{ steps.check.outputs.EMAIL_BODY }} | |
- name: Send notification | |
uses: cinotify/github-action@main | |
if: ${{ steps.check.outputs.HAS_EMAIL == 1 }} | |
with: | |
to: ${{ secrets.JELLYCAT_EMAIL2 }} | |
subject: ${{ steps.check.outputs.EMAIL_TITLE }} | |
body: ${{ steps.check.outputs.EMAIL_BODY }} |