Skip to content

CrowdCode - Feature Promotion #67

CrowdCode - Feature Promotion

CrowdCode - Feature Promotion #67

name: CrowdCode - Feature Promotion
on:
schedule:
- cron: '0 6 * * *' # Daily at 6 AM UTC
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run mode (no actual changes)'
required: false
default: 'false'
type: boolean
permissions:
pull-requests: write
contents: write
issues: write
jobs:
promote-features:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for merging
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install PyGithub pyyaml
- name: Promote Features
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
run: |
python scripts/promote-feature.py
- name: Summary
run: |
echo "## CrowdCode Feature Promotion Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Feature promotion completed. Check script output for details." >> $GITHUB_STEP_SUMMARY