Skip to content

Commit 6abd5a8

Browse files
authored
Create test.yml
1 parent c4305a5 commit 6abd5a8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- docs-test
8+
jobs:
9+
update-md-files:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y parallel jq
20+
curl -sL https://get.bacalhau.org/install.sh | bash
21+
22+
- name: Run script to test docs
23+
run: bash test/test-docs.sh
24+
25+
- name: Commit and push changes
26+
run: |
27+
git config --global user.name 'github-actions[bot]'
28+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
29+
git add .
30+
git commit -m 'Update markdown files'
31+
git push
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)