Skip to content

Commit

Permalink
Fix ci-repo-watcher.yml to run once a week and note create issue for …
Browse files Browse the repository at this point in the history
…empty repository list
  • Loading branch information
CAMOBAP committed Sep 6, 2023
1 parent 320a388 commit 6231f62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-repo-watcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ci-repo-watcher

on:
schedule:
- cron: "0 0 * * *" # once a day https://crontab.guru/#0_0_*_*
- cron: "0 0 * * Mon" # once a week https://crontab.guru/#0_0_*_*
workflow_dispatch:
workflow_call:
secrets:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
echo "New repositories:"
echo "$NEW_REPOSITORIES"
- if: ${{ env.NEW_REPOSITORIES != '' && env.NEW_REPOSITORIES != '\n' }}
- if: ${{ env.NEW_REPOSITORIES != '' && env.NEW_REPOSITORIES != '\n', && env.NEW_REPOSITORIES != '[]' }}
name: Download template if missing
run: |
if [ ! -f .github/templates/new-repos.md ]
Expand All @@ -49,7 +49,7 @@ jobs:
wget https://raw.githubusercontent.com/metanorma/ci/main/.github/templates/new-repos.md -O .github/templates/new-repos.md
fi
- if: ${{ env.NEW_REPOSITORIES != '' }}
- if: ${{ env.NEW_REPOSITORIES != '' && env.NEW_REPOSITORIES != '\n', && env.NEW_REPOSITORIES != '[]' }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN || secrets.token }}
Expand Down

0 comments on commit 6231f62

Please sign in to comment.