Skip to content

Merge branch 'main' of https://github.com/Avaray/stable-diffusion-tem… #79

Merge branch 'main' of https://github.com/Avaray/stable-diffusion-tem…

Merge branch 'main' of https://github.com/Avaray/stable-diffusion-tem… #79

name: Update
on:
workflow_dispatch:
push:
jobs:
update-docs:
name: Build Scripts and Update Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.21
- name: Install dependencies
run: bun install
- name: Generate Scripts
run: bun run index.ts
- name: Generate Readme
run: bun run readme.ts
- name: Commit changes
run: |
git config --local user.email "${{ secrets.DYGNITORZ_EMAIL }}"
git config --local user.name "${{ secrets.DYGNITORZ_NAME }}"
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "Updated docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.DYGNITORZ_TOKEN }}
branch: ${{ github.ref_name }}