-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 1.18 KB
/
schedule-sync.yml
File metadata and controls
40 lines (31 loc) · 1.18 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Weekly Team Sync Issue
# This workflow runs automatically based on a schedule.
on:
schedule:
# Cron expression:
# Runs at 09:00 AM UTC every Monday
- cron: '0 9 * * 1'
# Allows you to manually trigger the workflow from the Actions tab
workflow_dispatch:
jobs:
create_issue:
runs-on: ubuntu-latest
# Permissions are necessary for the workflow to create an issue
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Calculate next Monday's date for title
id: date
run: echo "issue_date=$(date -d 'next Monday' +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create Weekly Sync Issue
uses: peter-evans/create-issue-from-file@v6
with:
# Token is required to create the issue
token: ${{ secrets.GITHUB_TOKEN }}
# Path to the template file created in step 1
issue-template: .github/ISSUE_TEMPLATE/weekly_sync.md
# Optional: Replace the placeholder date in the title
title: 'Weekly Team Sync: ${{ steps.date.outputs.issue_date }}'
assignees: ajay-dhangar