Skip to content
Snippets Groups Projects
Commit f7fd2c8e authored by George Joseph's avatar George Joseph Committed by Asterisk Development Team
Browse files

ari-stubs: Fix more local anchor references

Also allow CreateDocs job to be run manually with default branches.

(cherry picked from commit a64718c32cddeec8b4b56394046e467616174b3d)
parent 1d9ea900
No related branches found
No related tags found
1 merge request!193Merge tag '20.8.1' into 'merge-asterisk-20.8.1'
...@@ -4,8 +4,7 @@ on: ...@@ -4,8 +4,7 @@ on:
inputs: inputs:
branches: branches:
description: "JSON array of branches: ['18','20'] (no spaces)" description: "JSON array of branches: ['18','20'] (no spaces)"
required: true required: false
default: ${{ vars.WIKIDOCS_ENABLE }}
type: string type: string
schedule: schedule:
# Times are UTC # Times are UTC
...@@ -15,15 +14,29 @@ env: ...@@ -15,15 +14,29 @@ env:
ASTERISK_REPO: ${{ github.repository }} ASTERISK_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCHES: ${{ vars.WIKIDOC_BRANCHES }}
INPUT_BRANCHES: ${{ inputs.branches }}
jobs: jobs:
CreateDocsDebug: CreateDocsDebug:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
manual_branches: ${{ steps.setup.outputs.manual_branches }}
steps: steps:
- name: setup
run: |
MANUAL_BRANCHES="$INPUT_BRANCHES"
[ -z "$MANUAL_BRANCHES" ] && MANUAL_BRANCHES="$DEFAULT_BRANCHES" || :
echo "manual_branches=${MANUAL_BRANCHES}"
echo "manual_branches=${MANUAL_BRANCHES}" >>${GITHUB_OUTPUT}
exit 0
- name: DumpEnvironment - name: DumpEnvironment
uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
with: with:
action-vars: ${{toJSON(inputs)}} action-inputs: ${{toJSON(inputs)}}
action-vars: ${{ toJSON(steps.setup.outputs) }}
CreateDocsScheduledMatrix: CreateDocsScheduledMatrix:
needs: [ CreateDocsDebug ] needs: [ CreateDocsDebug ]
...@@ -74,7 +87,7 @@ jobs: ...@@ -74,7 +87,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
branch: ${{ fromJSON(inputs.branches) }} branch: ${{ fromJSON(vars.WIKIDOC_MANUAL_BRANCHES) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: CreateDocs for ${{matrix.branch}} - name: CreateDocs for ${{matrix.branch}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment