Skip to content

Co-planning: Sync Fider to GitHub #97

Co-planning: Sync Fider to GitHub

Co-planning: Sync Fider to GitHub #97

name: "Co-planning: Sync Fider to GitHub"
on:
pull_request:
paths:
- ".github/automations/coplanning/**"
- ".github/workflows/coplanning-sync-fider-to-gh.yml"
workflow_dispatch: # for manual runs
schedule:
- cron: "0 0 * * *" # run daily at midnight
permissions:
issues: write
defaults:
run:
working-directory: ./.github/automations/coplanning
jobs:
sync:
runs-on: ubuntu-latest
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIDER_API_TOKEN: ${{ secrets.FIDER_TOKEN }}
FIDER_BOARD: "commongrants"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run script (dry run)
if: github.event_name == 'pull_request'
run: |
python run.py \
--org "${{ github.repository_owner }}" \
--repo "${{ github.event.repository.name }}" \
--label "co-planning" \
--issue-section "Summary" \
--platform "fider" \
--sync-direction "platform-to-github" \
--dry-run
- name: Run script (real run)
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
run: |
python run.py \
--org "${{ github.repository_owner }}" \
--repo "${{ github.event.repository.name }}" \
--label "co-planning" \
--issue-section "Summary" \
--platform "fider" \
--sync-direction "platform-to-github"