diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 4ae419100..940e17a7b 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -6,9 +6,9 @@ name: Monthly issue metrics # - cron: '3 2 1 * *' on: push: - branches: [issue_metrics] + branches: [master] pull_request: - branches: [issue_metrics] + branches: [master] permissions: contents: read @@ -27,10 +27,10 @@ jobs: shell: bash run: | # Calculate the first day of the previous month - first_day=$(date -d "last month -5 year" +%Y-%m-01) + first_day=$(date -d "last month" +%Y-%m-01) # Calculate the last day of the previous month - last_day=$(date -d "$first_day +10 year +1 month -1 day" +%Y-%m-%d) + last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d) #Set an environment variable with the date range echo "$first_day..$last_day" @@ -40,7 +40,8 @@ jobs: uses: github/issue-metrics@v3 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SEARCH_QUERY: 'repo:${{ github.repository }} created:${{ env.last_month }}' + # SEARCH_QUERY: 'repo:${{ github.repository }} created:${{ env.last_month }}' + SEARCH_QUERY: 'repo:jonescompneurolab/hnn-core is:issue created:${{ env.last_month }}' - name: Create issue uses: peter-evans/create-issue-from-file@v4