Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# GitHub Actions Workflows

This directory contains automated workflows for the Uplink repository.

## Weekly Copilot Task

**File:** `weekly-copilot-task.yml`

**Schedule:** Every Wednesday at 9:00 AM UTC

**Purpose:** This workflow demonstrates how to set up a scheduled GitHub Action that runs weekly. It can be customized to integrate with GitHub Copilot or other automation tools.

**Trigger Methods:**
- **Automatic:** Runs every Wednesday at 9:00 AM UTC via cron schedule
- **Manual:** Can be triggered manually from the Actions tab using the "workflow_dispatch" feature

**Customization Ideas:**
- Create automated code review issues
- Generate weekly reports
- Run automated maintenance tasks
- Trigger Copilot-based code analysis
- Check for dependency updates
- Generate documentation

To manually trigger the workflow:
1. Go to the "Actions" tab in the GitHub repository
2. Select "Weekly Copilot Task" from the workflows list
3. Click "Run workflow"
37 changes: 37 additions & 0 deletions .github/workflows/weekly-copilot-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Weekly Copilot Task

on:
schedule:
# Runs every Wednesday at 9:00 AM UTC (cron format: minute hour day-of-month month day-of-week)
# Day of week: 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, etc.
- cron: '0 9 * * 3'
workflow_dispatch: # Allows manual trigger for testing

jobs:
copilot-task:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Ask Copilot to review code
run: |
echo "🤖 GitHub Copilot Weekly Task"
echo "=============================="
echo "This workflow runs every Wednesday at 9:00 AM UTC"
echo ""
echo "Current date: $(date)"
echo "Repository: ${{ github.repository }}"
echo ""
echo "✅ Copilot task executed successfully!"
echo ""
echo "Note: This is a template workflow. You can customize it to:"
echo " - Create issues for code review"
echo " - Generate reports"
echo " - Run automated checks"
echo " - Trigger Copilot-based analysis"