Dodano rozwiązanie zadania 'Osiedla' z XXVI OI #30
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: Aktualizacja checklisty | |
| on: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkoutuj repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: main | |
| - name: Zainstaluj Pythona | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Generuj checklistę | |
| run: python checklista/update_readme.py | |
| - name: Dodaj checklistę do ostatniego commita | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md checklista/tasks.json | |
| # Amend the last commit and add the bot as a co-author | |
| git commit --amend --no-edit -m "$(git log -1 --pretty=%B) | |
| Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>" || echo "No changes to commit" | |
| - name: Push changes | |
| uses: ad-m/[email protected] | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: main | |
| force: true | |