diff --git a/.github/workflows/workflow-tester97.yml b/.github/workflows/workflow-tester97.yml new file mode 100644 index 0000000000..c39b9b9232 --- /dev/null +++ b/.github/workflows/workflow-tester97.yml @@ -0,0 +1,16 @@ +name: Test 97 # Related to SO https://stackoverflow.com/questions/78514157/can-we-put-if-else-condition-on-runs-on-for-the-choice-of-workflow-runner?noredirect=1#comment138418481_78514157 + +on: + workflow_dispatch: + +jobs: + test: + runs-on: ${{ matrix.object.envRunner }} + strategy: + matrix: + object: [{"envName":"dev", "envRunner":"ubuntu-latest"}, {"envName":"stg", "envRunner":"windows-latest"}, {"envName":"prd", "envRunner":"macos-latest"}] + fail-fast: true + max-parallel: 1 + steps: + - run: | + echo ${{ matrix.object.envName }} \ No newline at end of file diff --git a/.github/workflows/workflow-tester98-reusable.yml b/.github/workflows/workflow-tester98-reusable.yml new file mode 100644 index 0000000000..5d21b16e8e --- /dev/null +++ b/.github/workflows/workflow-tester98-reusable.yml @@ -0,0 +1,37 @@ +name: Test 98 reusable # Related to SO https://stackoverflow.com/questions/78513070/how-to-send-variables-to-called-workflow-from-the-caller-workflow/78514014?noredirect=1#comment138421206_78514014 + +on: + workflow_dispatch: + inputs: + cacheName: + type: string + description: 'Provide Cache Name' + expirationType: + type: string + description: 'Provide Expiration Type' + expirationTime: + type: string + description: 'Provide Expiration Time in Seconds' + + workflow_call: + inputs: + cacheName: + type: string + description: 'Provide Cache Name' + expirationType: + type: string + description: 'Provide Expiration Type' + expirationTime: + type: string + description: 'Provide Expiration Time in Seconds' + +jobs: + Create_Update-Cache: + runs-on: [ubuntu-latest] + steps: + - name: Do something + run: | + echo Iteration + echo ${{ inputs.cacheName }} + echo ${{ inputs.expirationType }} + echo ${{ inputs.expirationTime }} \ No newline at end of file diff --git a/.github/workflows/workflow-tester98.yml b/.github/workflows/workflow-tester98.yml new file mode 100644 index 0000000000..2ff7075dc2 --- /dev/null +++ b/.github/workflows/workflow-tester98.yml @@ -0,0 +1,55 @@ +name: Test 98 # Related to SO https://stackoverflow.com/questions/78513070/how-to-send-variables-to-called-workflow-from-the-caller-workflow/78514014?noredirect=1#comment138421206_78514014 + +on: + workflow_dispatch: + +jobs: + build: + runs-on: [ubuntu-latest] + outputs: + iterations: ${{ steps.set-iterations.outputs.values }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Read CSV and trigger workflows + id: set-iterations + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo Saving iteration list output as Array + # Join the array elements into a single JSON array + json_array='[{"cacheName":"iteration1","expirationType":"iteration1","expirationTime":"iteration1"}, {"cacheName":"iteration2","expirationType":"iteration2","expirationTime":"iteration2"}, {"cacheName":"iteration3","expirationType":"iteration3","expirationTime":"iteration3"}]' + echo "List: $json_array" + echo "values=$json_array" >> $GITHUB_OUTPUT + - name: Check list + run: | + echo ${{ steps.set-iterations.outputs.values }} + + call-ASGW-Config-Cache: + needs: [build] + strategy: + matrix: + iteration: ${{fromJson(needs.build.outputs.iterations)}} + uses: ./.github/workflows/workflow-tester98-reusable.yml + secrets: inherit + permissions: + contents: read + with: + cacheName: ${{ matrix.iteration.cacheName }} + expirationType: ${{ matrix.iteration.expirationType }} + expirationTime: ${{ matrix.iteration.expirationTime }} + + check: + needs: [build] + runs-on: [ubuntu-latest] + strategy: + matrix: + iteration: ${{fromJson(needs.build.outputs.iterations)}} + steps: + - name: Do something + run: | + echo Iteration + echo ${{ matrix.iteration }} + echo ${{ matrix.iteration.cacheName }} + echo ${{ matrix.iteration.expirationType }} + echo ${{ matrix.iteration.expirationType }} \ No newline at end of file diff --git a/backup/checkout-workflow.txt b/backup/checkout-workflow.txt index 535026ec78..6af740589f 100644 --- a/backup/checkout-workflow.txt +++ b/backup/checkout-workflow.txt @@ -1 +1 @@ -Tue May 21 01:15:59 UTC 2024 +Wed May 22 01:16:41 UTC 2024 diff --git a/backup/pull-request-workflow.txt b/backup/pull-request-workflow.txt index 0a6879854d..5520c1bb49 100644 --- a/backup/pull-request-workflow.txt +++ b/backup/pull-request-workflow.txt @@ -1 +1 @@ -Mon May 20 06:25:07 UTC 2024 +Tue May 21 06:25:45 UTC 2024 diff --git a/windows_report_full_remote.txt b/windows_report_full_remote.txt index baf1c0d53c..1f349da210 100644 --- a/windows_report_full_remote.txt +++ b/windows_report_full_remote.txt @@ -1 +1 @@ -Wed May 22 06:22:19 CUT 2024 +Thu May 23 06:23:32 CUT 2024