Skip to content

Commit 7e7e72b

Browse files
committed
ci: revert verify-runner-url extractor to grep src/aws.js
Paired with the full Phase 4 revert — now that action.yml no longer has a runner-version default, the Phase 4 version of verify-runner-url that reads action.yml can't find the version. Restore the original extractor that greps the literal URL out of src/aws.js. Signed-off-by: yuriyryabikov <22548029+kurok@users.noreply.github.com>
1 parent 6ccafce commit 7e7e72b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/pr.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,16 @@ jobs:
6868
steps:
6969
- name: Checkout
7070
uses: actions/checkout@v4
71-
- name: Extract default runner version from action.yml
71+
- name: Extract runner version from src/aws.js
7272
id: extract
7373
run: |
74-
# action.yml declares:
75-
# runner-version:
76-
# ...
77-
# default: '2.333.1'
78-
version=$(awk '/^ runner-version:/{found=1} found && /^ default:/{gsub(/[^0-9.]/, "", $2); print $2; exit}' action.yml)
74+
version=$(grep -oE 'actions/runner/releases/download/v[0-9]+\.[0-9]+\.[0-9]+' src/aws.js | head -1 | sed 's|.*/v||')
7975
if [ -z "$version" ]; then
80-
echo "::error::Could not locate the default runner-version in action.yml"
76+
echo "::error::Could not locate the pinned actions/runner version in src/aws.js"
8177
exit 1
8278
fi
8379
echo "version=$version" >> "$GITHUB_OUTPUT"
84-
echo "Default actions/runner: v$version"
80+
echo "Pinned actions/runner: v$version"
8581
- name: HEAD check the Linux x64 release asset
8682
env:
8783
VERSION: ${{ steps.extract.outputs.version }}

0 commit comments

Comments
 (0)