Files
asterisk/.github/workflows/CreateDocs.yml
George Joseph 9822f6fd25 .github: Refactor to use pull_request_target trigger.
After careful review, we believe we can now use the "pull_request_target"
workflow trigger instead of "pull_request" which required a separate
privliged workflow to add labels and comments to PRs when they are submitted
or updated.  This allows us to greatly streamline our workflows and remove
unneeded ones.

* The OnPRChanged workflow was...
  * Renamed to OnPRCheck
  * Changed to trigger on pull_request_target and the "recheckpr" label.
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The OnPRCPCheck and OnPRMergeApproved workflows were also...
  * Changed to simply call reusable workflows in asterisk-ci-actions.
  * Changed to use better concurrency groups.
* The NightlyTest and CreateDocs were also tweaked
2025-02-16 12:19:47 -07:00

25 lines
767 B
YAML

name: CreateDocs
on:
workflow_dispatch:
inputs:
branches:
description: "JSON array of branches: ['18','20'] (no spaces) or leave blank for all current branches."
required: false
type: string
schedule:
# Times are UTC
- cron: '0 04 * * *'
jobs:
CreateDocs:
if: ${{ ( github.event_name == 'schedule' && fromJSON(vars.WIKIDOCS_ENABLE) ) || github.event_name == 'workflow_dispatch' }}
strategy:
fail-fast: false
matrix:
branch: ${{ fromJSON(inputs.branches || vars.WIKIDOC_BRANCHES) }}
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskCreateDocs.yml@main
with:
asterisk_repo: ${{ github.repository }}
base_branch: ${{ matrix.branch }}