forked from liferay/liferay-frontend-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (22 loc) · 929 Bytes
/
triage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Weekly Triage assignment
on:
schedule:
# This happens weekly on Monday
- cron: '0 0 * * 1'
jobs:
create-issue:
runs-on: ubuntu-latest
if: github.repository_owner == 'liferay'
steps:
- id: get-day
run: echo "::set-output name=DAY::$(date +%d)"
- name: Create Issue
env:
ASSIGNEE: ${{ (steps.get-day.outputs.DAY < 10 && 'kresimir-coko') || (steps.get-day.outputs.DAY < 20 && 'izaera') || 'bryceosterhaus' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue create --repo $GITHUB_REPOSITORY \
--title "Weekly Issue Triage" \
--assignee $ASSIGNEE \
--body \
"Hey @$ASSIGNEE, It's that time of the week. Go through our issue backlog and triage by closing and adding labels."