-
-
Notifications
You must be signed in to change notification settings - Fork 27
31 lines (31 loc) · 977 Bytes
/
create-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: create-docs
on:
push:
branches:
- master
jobs:
perl6:
runs-on: ubuntu-latest
container:
image: fernandocorrea/red-tester-no-run
steps:
- uses: actions/checkout@v2
- name: Create local changes
run: |
raku tools/make-docs.raku
# - name: Run test coverage
# run: |
# racoco --fail-level=$(cat .coverage) --exec='zef test -v .' --html | raku -ne 'say $<num>.floor if /^ "Coverage:" <.ws> $<num>=[\d+\.\d+] "%" $/' > .coverage
# rm -rf docs/coverage
# mkdir -p docs/coverage/
# mv .racoco/report.html .racoco/report-data docs/coverage/
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Create docs" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}