Skip to content

update-ref

update-ref #37

Workflow file for this run

name: Update Reference Documentation
on:
repository_dispatch:
types: [update-ref]
workflow_dispatch:
permissions:
contents: write
jobs:
update-ref:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install tooling
uses: ok-nick/setup-aftman@v0.4.2
with:
cache: true
- name: Update discord-luau source
run: git submodule update --remote --recursive
- name: Update ref files
run: |
./lunew generateReference
- name: Commit & push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "docs: update refs for https://github.com/DiscordLuau/discord-luau/commit/${{ github.event.client_payload.sha }}" && \
git push || echo "warn: no changes to commit"
- name: Deploy dispatch
uses: peter-evans/repository-dispatch@v3
with:
repository: DiscordLuau/docs
event-type: deploy
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'