.github/workflows/manage-poll.yml #52
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
on: | |
schedule: | |
- cron: '33 3 * * 0' | |
workflow_dispatch: | |
jobs: | |
manage-poll: | |
runs-on: ubuntu-24.04 | |
env: | |
DAYS_ADDITION: 21 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- run: pip install -r requirements.txt | |
- name: Add new dates to poll | |
run: framadatectl --url ${{ secrets.FRAMADATE_ADMIN_URL }} add slot $(date -d "next sat + $DAYS_ADDITION day" +%Y-%m-%d) "" | |
- name: Remove old dates from poll | |
run: framadatectl --url ${{ secrets.FRAMADATE_ADMIN_URL }} delete old-slots |