Skip to content

Commit 1e83def

Browse files
committed
update existing workflow
1 parent 57f221f commit 1e83def

File tree

41 files changed

+245
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+245
-81
lines changed

.github/workflows/samples_configuration.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
24-
- name: Generate config.json
24+
- name: Generate config.json for schedule
25+
if: github.event_name == 'schedule'
2526
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
27+
- name: Generate config.json
28+
if: github.event_name != 'schedule'
29+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
2630
- name: Azure Login
2731
uses: azure/login@v1
2832
with:

.github/workflows/samples_connections.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_connections_connection.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
24-
- name: Generate config.json
25-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
24+
- name: Generate config.json for canary workspace (scheduled runs only)
25+
if: github.event_name == 'schedule'
26+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
27+
- name: Generate config.json for production workspace
28+
if: github.event_name != 'schedule'
29+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
2630
- name: Azure Login
2731
uses: azure/login@v1
2832
with:

.github/workflows/samples_flowinpipeline_pipeline.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
24-
- name: Generate config.json
25-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
24+
- name: Generate config.json for canary workspace (scheduled runs only)
25+
if: github.event_name == 'schedule'
26+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
27+
- name: Generate config.json for production workspace
28+
if: github.event_name != 'schedule'
29+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
2630
- name: Azure Login
2731
uses: azure/login@v1
2832
with:

.github/workflows/samples_flows_chat_basic_chat.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_chat_chat_with_pdf.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_chat_chat_with_wikipedia.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
24-
- name: Generate config.json
25-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
24+
- name: Generate config.json for canary workspace (scheduled runs only)
25+
if: github.event_name == 'schedule'
26+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
27+
- name: Generate config.json for production workspace
28+
if: github.event_name != 'schedule'
29+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
2630
- name: Setup Python 3.9 environment
2731
uses: actions/setup-python@v4
2832
with:

.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
24-
- name: Generate config.json
25-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
24+
- name: Generate config.json for canary workspace (scheduled runs only)
25+
if: github.event_name == 'schedule'
26+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
27+
- name: Generate config.json for production workspace
28+
if: github.event_name != 'schedule'
29+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
2630
- name: Setup Python 3.9 environment
2731
uses: actions/setup-python@v4
2832
with:

.github/workflows/samples_flows_evaluation_eval_basic.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_evaluation_eval_groundedness.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_autonomous_agent.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_basic.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_basic_with_connection.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_customer_intent_extraction.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_flow_with_additional_includes.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_flow_with_symlinks.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_gen_docstring.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

.github/workflows/samples_flows_standard_maths_to_code.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28-
- name: Generate config.json
29-
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
28+
- name: Generate config.json for canary workspace (scheduled runs only)
29+
if: github.event_name == 'schedule'
30+
run: echo '${{ '{{' }} secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ '{{' }} github.workspace }}/examples/config.json
31+
- name: Generate config.json for production workspace
32+
if: github.event_name != 'schedule'
33+
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON }}' > ${{ github.workspace }}/examples/config.json
3034
- name: Prepare requirements
3135
working-directory: examples
3236
run: |

0 commit comments

Comments
 (0)