Skip to content

Merge pull request #586 from carlosmmatos/carlosmmatos/issue583 #180

Merge pull request #586 from carlosmmatos/carlosmmatos/issue583

Merge pull request #586 from carlosmmatos/carlosmmatos/issue583 #180

Workflow file for this run

name: Pages
on:
push:
branches:
- main
# Run manually if needed
workflow_dispatch:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build docs
uses: addnab/docker-run-action@v3
with:
registry: quay.io
image: quay.io/crowdstrike/ansible-doc-builder:latest
options: -v ${{ github.workspace }}:/usr/share/ansible/collections/ansible_collections/crowdstrike/falcon
run: /build.sh
- name: Commit files
run: |
cd html
git init
git add -A
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Updating gh-pages docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./html