Reset Weekly Wants #50
This file contains hidden or 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: Reset Weekly Wants | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: Set to true to perform a dry run (no changes will be made) | |
| required: false | |
| default: "true" | |
| permissions: {} | |
| jobs: | |
| reset-weekly-wants: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write | |
| contents: read | |
| env: | |
| WIKI_USERNAME: ${{ secrets.WIKI_USERNAME }} | |
| WIKI_PASSWORD: ${{ secrets.WIKI_PASSWORD }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Sync uv environment | |
| run: uv sync | |
| - name: Ensure Dry Run | |
| if: inputs.dry_run == 'true' | |
| run: | | |
| echo "DO_WEEKLY_RESET=false" >> $GITHUB_ENV | |
| - name: Set reset mode | |
| if: inputs.dry_run != 'true' | |
| run: | | |
| echo "DO_WEEKLY_RESET=true" >> $GITHUB_ENV | |
| - name: Reset Weekly Wants | |
| run: uv run src/main.py |