name: Validate on Push on: [push, pull_request] jobs: validate: runs-on: ubuntu-latest outputs: completion_pct: ${{ steps.run_koans.outputs.completion_pct }} steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: '3.1.4' bundler-cache: true - id: run_koans run: | bundle exec rake | tee output.txt echo "completion_pct=$(grep -E '\d+%' output.txt)" >> "$GITEA_OUTPUT" - id: update_svg if: ${{ gitea.event_name == 'push' }} run: | ruby scripts/update-progress.rb git config --global user.name 'Autobot' git config --global user.email 'autobot@git.sangeeth.dev' git add README.md git commit -m 'chore: update progress in README.md' git push