Skip to content

setup ci for wlp readmes #4

setup ci for wlp readmes

setup ci for wlp readmes #4

name: Generate README previews
on:
push:
branches:
- main
jobs:
generate-readmes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Git identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Install dependencies
run: sudo apt update && sudo apt install -y imagemagick
- name test
run: pwd && ls -la

Check failure on line 19 in .github/workflows/gen-wlp-readmes.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/gen-wlp-readmes.yaml

Invalid workflow file

You have an error in your yaml syntax on line 19
- name: Make scripts executable
run: chmod +x scripts/gen-readme.sh scripts/run-gen-readmes.sh
- name: Run script to generate READMEs
run: ./scripts/run-gen-readmes.sh
- name: Commit and push changes
run: |
git add .
if git diff --cached --quiet; then
echo "Нет изменений — пропускаю коммит"
exit 0
fi
git commit -m "ci: auto-regenerate README previews"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main