ruby-koans/.gitea/workflows/validate-on-push.yml
Sangeeth Sudheer db0dcfc3fb
Some checks failed
Validate on Push / validate (push) Failing after 47s
try running job in a ruby container
2023-12-27 15:07:16 +05:30

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