Weekly Team Sync #1
This file contains hidden or 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: 20 07 * * 1,2,3,4,5 | |
| jobs: | |
| create_issue: | |
| name: Create team sync issue | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - 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 \ | |
| --title "$TITLE" \ | |
| --assignee "$ASSIGNEES" \ | |
| --label "$LABELS" \ | |
| --body "$BODY") | |
| if [[ $PINNED == true ]]; then | |
| gh issue pin "$new_issue_url" | |
| fi | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| TITLE: Testing repeating issues | |
| ASSIGNEES: schanzer | |
| LABELS: Infrastructure | |
| BODY: | | |
| ### Agenda | |
| - [ ] Start the recording | |
| - [ ] Check-ins | |
| - [ ] Discussion points | |
| - [ ] Post the recording | |
| ### Discussion Points | |
| Add things to discuss below | |
| - [Work this week](https://github.com/orgs/github/projects/3) | |
| PINNED: false | |
| CLOSE_PREVIOUS: false |