Weekly Team Sync #20
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 Team Sync | |
on: | |
schedule: | |
- cron: "30 22 * * *" | |
jobs: | |
create_issue: | |
name: Create team sync issue | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
steps: | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Create team sync issue | |
run: | | |
if [[ $CLOSE_PREVIOUS == true ]]; then | |
previous_issue_number=$(gh issue list \ | |
--label "$LABELS" \ | |
--json number \ | |
--jq '.[0].number') | |
if [[ -n $previous_issue_number ]]; then | |
gh issue close "$previous_issue_number" | |
gh issue unpin "$previous_issue_number" | |
fi | |
fi | |
new_issue_url=$(gh issue create \ | |
-t "$TITLE" \ | |
-a "$ASSIGNEES" \ | |
-l "$LABELS" \ | |
-b "$BODY") | |
if [[ $PINNED == true ]]; then | |
gh issue pin "$new_issue_url" | |
fi | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} | |
TITLE: Daily Scrum (${{ steps.date.outputs.date }}) | |
ASSIGNEES: su-giana | |
LABELS: daily-scrum | |
BODY: | | |
# 스크럼 🏉 / Wrap-up 🌯 중 택 1 | |
스크럼 템플릿 | |
1. 어제 한 일 🌙 | |
- | |
2. 오늘 할 일 🔥 | |
- | |
3. 공유할 이슈 🙌 | |
- | |
PINNED: false | |
CLOSE_PREVIOUS: true | |