File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1313 required : false
1414 type : string
1515 outputs :
16+ xla_branch :
17+ description : " Resolved openxla/xla branch"
18+ value : ${{ jobs.resolve-commits.outputs.xla_branch }}
1619 xla_commit :
1720 description : " Resolved openxla/xla commit"
1821 value : ${{ jobs.resolve-commits.outputs.xla_commit }}
22+ rocm_xla_branch :
23+ description : " Resolved ROCm/xla branch"
24+ value : ${{ jobs.resolve-commits.outputs.rocm_xla_branch }}
1925 rocm_xla_commit :
2026 description : " Resolved ROCm/xla commit"
2127 value : ${{ jobs.resolve-commits.outputs.rocm_xla_commit }}
2430 resolve-commits :
2531 runs-on : ubuntu-latest
2632 outputs :
33+ xla_branch : ${{ steps.resolve.outputs.xla_branch }}
2734 xla_commit : ${{ steps.resolve.outputs.xla_commit }}
35+ rocm_xla_branch : ${{ steps.resolve.outputs.rocm_xla_branch }}
2836 rocm_xla_commit : ${{ steps.resolve.outputs.rocm_xla_commit }}
2937 steps :
3038 - name : " Checking out repository"
@@ -48,11 +56,15 @@ jobs:
4856 exit 1
4957 fi
5058
59+ XLA_BRANCH=""
5160 XLA_COMMIT="$INPUT_XLA_COMMIT"
61+ ROCM_XLA_BRANCH=""
5262 ROCM_XLA_COMMIT="$INPUT_ROCM_XLA_COMMIT"
5363 else
5464 case "$SOURCE" in
5565 pinned)
66+ XLA_BRANCH=""
67+ ROCM_XLA_BRANCH=""
5668 set -a
5769 source openxla/commits.env
5870 set +a
6779 esac
6880 fi
6981
82+ echo "xla_branch=$XLA_BRANCH" >> "$GITHUB_OUTPUT"
7083 echo "xla_commit=$XLA_COMMIT" >> "$GITHUB_OUTPUT"
84+ echo "rocm_xla_branch=$ROCM_XLA_BRANCH" >> "$GITHUB_OUTPUT"
7185 echo "rocm_xla_commit=$ROCM_XLA_COMMIT" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change @@ -111,15 +111,29 @@ jobs:
111111 id : release-notes
112112 shell : bash
113113 env :
114+ XLA_BRANCH : ${{ needs.resolve-commits.outputs.xla_branch }}
114115 XLA_COMMIT : ${{ needs.resolve-commits.outputs.xla_commit }}
116+ ROCM_XLA_BRANCH : ${{ needs.resolve-commits.outputs.rocm_xla_branch }}
115117 ROCM_XLA_COMMIT : ${{ needs.resolve-commits.outputs.rocm_xla_commit }}
116118 run : |
119+ if [ -n "$XLA_BRANCH" ]; then
120+ xla_line="- openxla/xla: $XLA_BRANCH @ $XLA_COMMIT"
121+ else
122+ xla_line="- openxla/xla: $XLA_COMMIT"
123+ fi
124+
125+ if [ -n "$ROCM_XLA_BRANCH" ]; then
126+ rocm_xla_line="- ROCm/xla: $ROCM_XLA_BRANCH @ $ROCM_XLA_COMMIT"
127+ else
128+ rocm_xla_line="- ROCm/xla: $ROCM_XLA_COMMIT"
129+ fi
130+
117131 {
118132 echo "body<<EOF"
119133 echo "OpenXLA commits used for this nightly:"
120134 echo
121- echo "- openxla/xla: $XLA_COMMIT "
122- echo "- ROCm/xla: $ROCM_XLA_COMMIT "
135+ echo "$xla_line "
136+ echo "$rocm_xla_line "
123137 echo "EOF"
124138 } >> "$GITHUB_OUTPUT"
125139
You can’t perform that action at this time.
0 commit comments