Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Merge pull request #23 from williamwmarx/fix/markdown-workflow-pr #43

Merge pull request #23 from williamwmarx/fix/markdown-workflow-pr

Merge pull request #23 from williamwmarx/fix/markdown-workflow-pr #43

Workflow file for this run

name: Build markdown files
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'INSTALL.md'
jobs:
markdown-build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'
- name: Build
run: go run assembly/main.go
- name: Create PR for markdown changes
run: |
if [ -n "$(git status --porcelain)" ]; then
BRANCH="docs/markdown-update-$(date +%s)"
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
git checkout -b "$BRANCH"
git add -A
git commit -m "docs: update generated markdown"
git push -u origin "$BRANCH"
gh pr create --title "docs: update generated markdown" --body "Auto-generated markdown update" --head "$BRANCH" --base main
gh pr merge --auto --squash
fi
env:
GH_TOKEN: ${{ github.token }}