27 lines
774 B
YAML
27 lines
774 B
YAML
name: Validate on Push
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ruby:3.1.4
|
|
outputs:
|
|
completion_pct: ${{ steps.run_koans.outputs.completion_pct }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- 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
|