Skip to content

Create test.yml

Create test.yml #1

Workflow file for this run

name: Test Docs
on:
push:
branches:
- main
- docs-test
jobs:
update-md-files:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y parallel jq
curl -sL https://get.bacalhau.org/install.sh | bash
- name: Run script to test docs
run: bash test/test-docs.sh
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Update markdown files'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}