Skip to content

Commit

Permalink
fix: ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Sep 22, 2023
1 parent b11895a commit f7de6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto-approve dependabot PRs

on:
schedule:
- cron: '*/10 * * * *' # Runs every 10 minutes
- cron: '*/5 * * * *' # Runs every 5 minutes

permissions:
pull-requests: write
Expand All @@ -15,7 +15,7 @@ jobs:
id: prs
# Auto approve PRs that are 20 days old, for security
run: |
prs=$(gh pr list --author 'dependabot[bot]' --json number,createdAt --label "dependencies" --state open | jq -r '.[] | select((.createdAt | fromdateiso8601) < (now - (15))) | .number')
prs=$(gh pr list --repo ${{ github.repository }} --author 'dependabot[bot]' --json number,createdAt --label "dependencies" --state open | jq -r '.[] | select((.createdAt | fromdateiso8601) < (now - (15))) | .number')
echo "::set-output name=prs::$prs"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f7de6af

Please sign in to comment.