# GitHub Actions workflow for auto-inviting org members to human intervention.
#
# The file coordinate_package_policies.json contains the thresholds for
# triggering addition for each of the coordinated packages.

name: Invite organization members based on merged PRs

on:
  schedule:
    # Run once a day at 22:14 UTC (arbitrary time)
    - cron: '14 22 * * *'

jobs:
  invite_members:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - uses: actions/setup-python@v2

    - name: Install dependencies
      run: pip install github3.py

    - name: Issue invitations
      env:
        ORG_INVITE_TOKEN: ${{ secrets.ORG_INVITE_TOKEN }} # this token needs org admin permissions
      run: |
        python add_contributors_to_org.py --dry-run --verbose astropy ccdproc ccd-reduction-and-photometry-guide

# GitHub Actions workflow for auto-inviting org members to human intervention.
#
# The file coordinate_package_policies.json contains the thresholds for
# triggering addition for each of the coordinated packages.

name: Invite organization members based on merged PRs

on:
  schedule:
    # Run once a day at 22:14 UTC (arbitrary time)
    - cron: '14 22 * * *'

jobs:
  invite_members:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - uses: actions/setup-python@v2

    - name: Install dependencies
      run: pip install github3.py

    - name: Issue invitations
      env:
        ORG_INVITE_TOKEN: ${{ secrets.ORG_INVITE_TOKEN }} # this token needs org admin permissions
        REPOS: "asdf-astropy astropy astropy-healpix astroquery ccdproc photutils regions reproject specreduce specutils"
      run: |
        python add_contributors_to_org.py --dry-run --verbose astropy $REPOS

Update workflow to run on all coordinated packages
Update workflow to run on all coordinated packages
