chore: fix generate preview references action (#7901)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
name: Generate Preview Reference [Automated]
|
name: Generate Preview Reference [Automated]
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
api-v2:
|
api-v2:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_call' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'api' }}
|
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'api' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.11.0
|
uses: styfle/cancel-workflow-action@0.11.0
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
branch-suffix: "timestamp"
|
branch-suffix: "timestamp"
|
||||||
ui:
|
ui:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_call' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'ui' }}
|
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'ui' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.11.0
|
uses: styfle/cancel-workflow-action@0.11.0
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
references:
|
references:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || (startsWith(github.head_ref, 'chore/generate-tsdocs') && github.event.pull_request.merged == true)
|
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (startsWith(github.head_ref, 'chore/generate-tsdocs') && github.event.pull_request.merged == true)
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.11.0
|
uses: styfle/cancel-workflow-action@0.11.0
|
||||||
@@ -60,12 +60,12 @@ jobs:
|
|||||||
working-directory: www/utils
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Generate References
|
- name: Generate References
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
|
||||||
run: "yarn start generate ${{ github.event.inputs.referenceName }} --merge"
|
run: "yarn start generate ${{ github.event.inputs.referenceName }} --merge"
|
||||||
working-directory: www/utils/packages/typedoc-generate-references
|
working-directory: www/utils/packages/typedoc-generate-references
|
||||||
|
|
||||||
- name: Generate References
|
- name: Generate References
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' || github.event_name == 'workflow_call' }}
|
if: ${{ github.event_name != 'workflow_dispatch' || github.event_name == 'schedule' }}
|
||||||
run: "yarn generate:references"
|
run: "yarn generate:references"
|
||||||
working-directory: www/utils
|
working-directory: www/utils
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user