Project column management #873
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Project column management | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '1 0 * * *' | |
jobs: | |
build: | |
name: Run python script | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
run: pip install -Uq PyGithub | |
- name: Remove past columns and their cards | |
run: python .github/scripts/removepastprojectcolumns.py | |
env: | |
CONTEXT_GITHUB: ${{ toJson(github) }} | |
- name: Create future columns | |
run: python .github/scripts/createprojectcolumns.py | |
env: | |
CONTEXT_GITHUB: ${{ toJson(github) }} |