@@ -70,28 +70,46 @@ jobs:
7070 fail-fast : false
7171 matrix :
7272 path : ${{ fromJson(needs.affected.outputs.paths) }}
73- env :
74- GOOGLE_SAMPLES_PROJECT : long-door-651
75- GOOGLE_SERVICE_ACCOUNT :
[email protected] 73+ # env:
74+ # GOOGLE_SAMPLES_PROJECT: long-door-651
75+ # GOOGLE_SERVICE_ACCOUNT: [email protected] 7676 steps :
77- - name : Setup Custard
78- # TODO: use version tag when available
79- uses : GoogleCloudPlatform/cloud-samples-tools/.github/setup-custard@main
80- with :
81- path : ${{ matrix.path }}
82- ci-setup : ${{ toJson(fromJson(needs.affected.outputs.ci-setups)[matrix.path]) }}
83- project-id : ${{ env.GOOGLE_SAMPLES_PROJECT }}
84- workload-identity-provider : projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
85- service-account : ${{ env.GOOGLE_SERVICE_ACCOUNT }}
77+ # - name: Setup Custard
78+ # # TODO: use version tag when available
79+ # uses: GoogleCloudPlatform/cloud-samples-tools/.github/setup-custard@main
80+ # with:
81+ # path: ${{ matrix.path }}
82+ # ci-setup: ${{ toJson(fromJson(needs.affected.outputs.ci-setups)[matrix.path]) }}
83+ # project-id: ${{ env.GOOGLE_SAMPLES_PROJECT }}
84+ # workload-identity-provider: projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
85+ # service-account: ${{ env.GOOGLE_SERVICE_ACCOUNT }}
8686
87- - name : Setup Node
88- uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
89- with :
90- node-version : ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].node-version }}
91- - name : Run tests for ${{ matrix.path }}
87+ # - name: Setup Node
88+ # uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
89+ # with:
90+ # node-version: ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].node-version }}
91+ # - name: Run tests for ${{ matrix.path }}
92+ # run: |
93+ # timeout ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].timeout-minutes }}m \
94+ # make test dir=${{ matrix.path }}
95+
96+ # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#using-data-from-the-triggering-workflow
97+ - name : Save job inputs
9298 run : |
93- timeout ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].timeout-minutes }}m \
94- make test dir=${{ matrix.path }}
99+ mkdir -p artifact/
100+ cat > artifact/inputs.json << EOF
101+ {
102+ "pull-request-number": ${{ github.event.number }},
103+ "path": ${{ matrix.path }},
104+ "ci-setup": ${{ toJson(fromJson(needs.affected.outputs.ci-setups)[matrix.path]) }}
105+ }
106+ EOF
107+ - name : Upload inputs artifact
108+ uses : actions/upload-artifact@v4
109+ with :
110+ name : ${{ github.event.pull_request.head.sha }}
111+ path : artifact/
112+
95113 # - name: Upload test results for FlakyBot workflow
96114 # if: github.event.action == 'schedule' && always() # always() submits logs even if tests fail
97115 # uses: actions/upload-artifact@v4
0 commit comments