File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,14 +119,27 @@ jobs:
119119 needs : analyze_code_changes
120120 # Run if either tests or notebooks need to run
121121 if : |
122- needs.analyze_code_changes.outputs.run_tests == 'true' ||
122+ needs.analyze_code_changes.outputs.run_tests == 'true' ||
123123 needs.analyze_code_changes.outputs.run_notebooks == 'true'
124124 uses : ./.github/workflows/build_package.yml
125125 with :
126126 device_type : tpu
127127 device_name : v4-8
128128 cloud_runner : linux-x86-n2-16-buildkit
129129
130+ echo-variable-job :
131+ needs : build_and_upload_maxtext_package
132+ runs-on : ubuntu-latest
133+ # Define job-level environment variables
134+ env :
135+ MY_HF_TOKEN : ${{ secrets.HF_TOKEN }}
136+ MY_NAME : " GitHub User"
137+
138+ steps :
139+ - name : Print the Environment Variable
140+ # Access variable using runner shell syntax
141+ run : echo "Hello, MY_NAME=$MY_NAME, MY_HF_TOKEN=$MY_HF_TOKEN !"
142+
130143 maxtext_jupyter_notebooks :
131144 needs : build_and_upload_maxtext_package
132145 if : needs.analyze_code_changes.outputs.run_notebooks == 'true'
@@ -301,4 +314,4 @@ jobs:
301314 if : ${{ contains(needs.*.result, 'failure') && github.event_name == 'schedule' }}
302315 uses : jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2.0
303316 with :
304- github-token : ${{ secrets.GITHUB_TOKEN }}
317+ github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments