Skip to content

Commit accfcb7

Browse files
authored
Add progress bar to wiki while tests run (#7)
1 parent 02b36a3 commit accfcb7

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,24 @@ name: CI
33
on: [push]
44

55
jobs:
6-
test:
6+
upload_progress_bar_to_wiki:
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
repository: ${{ github.repository }}.wiki
12+
path: wiki
13+
- run: |
14+
cd wiki
15+
printf '%s\n%s\n' "## Tests are running! Please wait!" "![](progress.gif)" > Home.md
16+
git config user.name github-actions
17+
git config user.email github-actions@github.com
18+
git add .
19+
git commit --allow-empty -m "Add progress bar"
20+
git push
21+
22+
run_tests:
23+
needs: upload_progress_bar_to_wiki
724
runs-on: ubuntu-20.04
825
steps:
926
- uses: actions/checkout@v2
@@ -30,8 +47,9 @@ jobs:
3047
with:
3148
name: homework_result
3249
path: results.md
33-
upload_to_wiki:
34-
needs: test
50+
51+
upload_results_to_wiki:
52+
needs: run_tests
3553
runs-on: ubuntu-20.04
3654
steps:
3755
- uses: actions/checkout@v2
@@ -48,6 +66,6 @@ jobs:
4866
git config user.name github-actions
4967
git config user.email github-actions@github.com
5068
git add .
51-
git commit -m "generated"
69+
git commit -m "Update results"
5270
git push
5371

0 commit comments

Comments
 (0)