Skip to content

generate-site

generate-site #85

Workflow file for this run

name: generate-site
on:
schedule:
- cron: '0 20 * * 1'
workflow_dispatch:
jobs:
generate:
runs-on: macos-latest
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- uses: actions/checkout@v4
- run: |
make tap
- uses: coatl-dev/actions/simple-git-diff@v3
id: git-diff
- if: ${{ steps.git-diff.outputs.diff == 'true' }}
uses: coatl-dev/actions/gpg-import@v3
with:
passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }}
private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }}
- if: ${{ steps.git-diff.outputs.diff == 'true' }}
run: |
git checkout -B coatl-bot-docs-autoupdate
git add --all
git commit -m "docs: update docs"
git push --force --set-upstream origin coatl-bot-docs-autoupdate
- if: ${{ steps.git-diff.outputs.diff == 'true' }}
uses: coatl-dev/actions/pr-create@v3
with:
gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }}