Skip to content

Update actions.ts

Update actions.ts #3

name: Example Matrix Action
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
build-with-reusable-workflow-with-matrix-inputs:
strategy:
fail-fast: false
matrix:
inputs: [
{id: '1.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '1.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '1.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_string'},
{id: '1.2', input_1: 'Example', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '1.3', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},]
uses: ./.github/workflows/example-reusable-from-matrix.yml
with:
id: ${{matrix.inputs.id}} # Id to seperate the different runs
input_2: ${{matrix.inputs.input_2}}
input_1: ${{matrix.inputs.input_1}}
workflow-context: build-with-reusable-workflow-with-matrix-inputs, ${{ toJSON(matrix) }}
build-with-reusable-workflow-with-limit:
strategy:
max-parallel: 2
fail-fast: false
matrix:
inputs: [
{id: '2.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '2.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '2.1', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings', input_2: 'In_this_input_we_are_testing_very_very_very_long_string'},
{id: '2.2', input_1: 'Example', input_2: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '2.3', input_1: 'In_this_input_we_are_testing_very_very_very_long_strings'},
{id: '2.4', input_1: 'In_this_test_we_are_testing', input_2: 'the_character_sm_of_98'},
{id: '2.5', input_1: 'In_this_test_we_are_testing', input_2: 'the_character_sum_of_99'},
{id: '2.6', input_1: 'In_this_test_we_are_testing', input_2: 'the_character_sum_of_100'},
{id: '2.7', input_1: 'In_this_test_we_are_testing', input_2: 'the_character_sum_of_101_'}]
uses: ./.github/workflows/example-reusable-from-matrix.yml
with:
id: ${{matrix.inputs.id}} # Id to seperate the different runs
input_2: ${{matrix.inputs.input_2}}
input_1: ${{matrix.inputs.input_1}}
workflow-context: build-with-reusable-workflow-with-limit, ${{ toJSON(matrix) }}