Skip to content

Dodano rozwiązanie zadania 'Przesunięcie cykliczne' z XXVI OI #32

Dodano rozwiązanie zadania 'Przesunięcie cykliczne' z XXVI OI

Dodano rozwiązanie zadania 'Przesunięcie cykliczne' z XXVI OI #32

Workflow file for this run

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 checklista/oi_progress.svg
# 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