- Notifications
You must be signed in to change notification settings - Fork 0
Description
💡 Verification agent
🧩 Analysis chain
Unify Action version across examples.
Mix of @v1.2.0 and @v1.2.1. Prefer the latest tag in this release or the major tag @v1 for stability.
Run to list and update:
Also applies to: 520-521, 549-550, 657-666, 675-679, 683-690, 694-702, 785-792, 818-825, 858-866, 893-899, 925-933, 941-945, 991-995, 1059-1068, 1148-1158, 1166-1180, 1245-1251, 1270-1277, 1491-1495, 1560-1560, 1611-1620, 1640-1654, 1684-1691, 1713-1721, 1778-1788, 1810-1823, 1847-1865, 1889-1893, 1913-1930, 1941-1945, 1969-1972, 1995-2000, 2019-2032, 2044-2051, 2125-2134, 2212-2215, 2235-2241, 2269-2277, 2297-2301, 2410-2413, 2485-2495, 2492-2495, 2521-2526, 2678-2681, 2705-2708, 2714-2717, 2727-2735
🏁 Script executed:
#!/bin/bash rg -n "uses:\s*brightdigit/swift-build@v1\.[0-9]+\.[0-9]+" README.md # Replace all 1.2.0 with 1.2.1 sed -i.bak "s@brightdigit/swift-build@v1.2.0@brightdigit/swift-build@v1.2.1@g" README.md # Or pin to major: # sed -i.bak "s@brightdigit/swift-build@v1\.[0-9]\+\.[0-9]\+@brightdigit/swift-build@v1@g" README.mdLength of output: 3554
Update all brightdigit/swift-build examples in README.md to use @v1.2.1
The previous sed command failed due to unescaped separators—use a delimiter that doesn’t conflict with @ and slashes. For example:
# Find every example using a v1.x.y pin and replace with @v1.2.1 rg -l "uses: brightdigit/swift-build@v1\.[0-9]\+\.[0-9]\+" README.md \ | xargs sed -i.bak 's|brightdigit/swift-build@v1\.[0-9]\+\.[0-9]\+|brightdigit/swift-build@v1.2.1|g' # Verify no @v1.2.0 remains: rg -n "uses: brightdigit/swift-build@v1\.2\.0" README.mdIf you’d rather pin to the major tag for stability, run:
sed -i.bak 's|@v1\.[0-9]\+\.[0-9]\+|@v1|g' README.md🤖 Prompt for AI Agents
In README.md around lines 505 to 506, update every occurrence of uses: brightdigit/swift-build@v1.x.y to uses: brightdigit/swift-build@v1.2.1 by running a safe search-and-replace that avoids sed delimiter conflicts (use a non-conflicting delimiter such as | or another char) and match the v1 semantic version pattern; verify no remaining @v1.2.0 references after replacement and commit the updated README.md. Originally posted by @coderabbitai[bot] in #20 (comment)