Skip to content

Commit

Permalink
updates Github action (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO authored Jul 10, 2024
1 parent b9dcf9d commit 18e47ef
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/unreviewedPRReminder.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Check old PRs"
name: 'Check old PRs'
on:
schedule:
- cron: '0 0 * * *' # run once a day
workflow_dispatch: # enables manual trigger
- cron: '0 0 * * *' # run once a day
workflow_dispatch: # enables manual trigger

jobs:
check:
Expand All @@ -13,7 +13,7 @@ jobs:

- name: Check PR age
id: check_age
env: # set the GH_TOKEN environment variable here
env: # set the GH_TOKEN environment variable here
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
Expand All @@ -36,6 +36,10 @@ jobs:
if echo "$PR_LABELS" | grep -q "WIP"; then
continue
fi
# Continue loop if the PR has the label "WaitForBackend"
if echo "$PR_LABELS" | grep -q "WaitForBackend"; then
continue
fi
# Convert date to Unix timestamp
PR_CREATED_AT=$(date -d"$PR_CREATED_AT" +%s)
Expand All @@ -55,6 +59,6 @@ jobs:
if: env.old_prs != ''
uses: Ilshidur/[email protected]
with:
args: "Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}"
args: 'Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit 18e47ef

Please sign in to comment.