Weekly Triage assignment #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |