@@ -117,7 +117,7 @@ jobs:
117
117
118
118
check-node-version :
119
119
if : ${{ github.event.pull_request }}
120
- name : Check node version consistency
120
+ name : Check Action Node versions
121
121
runs-on : ubuntu-latest
122
122
timeout-minutes : 45
123
123
env :
@@ -126,24 +126,24 @@ jobs:
126
126
steps :
127
127
- uses : actions/checkout@v4
128
128
- id : head-version
129
- name : check HEAD node version
129
+ name : Verify all Actions use the same Node version
130
130
run : |
131
131
NODE_VERSION=$(find . -name "action.yml" -exec yq -e '.runs.using' {} \; | grep node | sort | uniq)
132
132
echo "NODE_VERSION: ${NODE_VERSION}"
133
133
if [[ $(echo "$NODE_VERSION" | wc -l) -gt 1 ]]; then
134
- echo "Error: More than one node version used in actions ."
134
+ echo "::error:: More than one node version used in 'action.yml' files ."
135
135
exit 1
136
136
fi
137
137
echo "node_version=${NODE_VERSION}" >> $GITHUB_OUTPUT
138
138
139
139
- id : checkout-base
140
- name : check out base ref for backport check
140
+ name : ' Backport: Check out base ref'
141
141
if : ${{ startsWith(github.head_ref, 'backport-') }}
142
142
uses : actions/checkout@v4
143
143
with :
144
144
ref : ${{ env.BASE_REF }}
145
145
146
- - name : compare with node version on base ref for backport check
146
+ - name : ' Backport: Verify Node versions unchanged '
147
147
if : steps.checkout-base.outcome == 'success'
148
148
env :
149
149
HEAD_VERSION : ${{ steps.head-version.outputs.node_version }}
@@ -152,6 +152,6 @@ jobs:
152
152
echo "HEAD_VERSION: ${HEAD_VERSION}"
153
153
echo "BASE_VERSION: ${BASE_VERSION}"
154
154
if [[ "$BASE_VERSION" != "$HEAD_VERSION" ]]; then
155
- echo "Error: Cannot change node version in a backport PR."
155
+ echo "::error:: Cannot change the Node version of an Action in a backport PR."
156
156
exit 1
157
157
fi
0 commit comments