File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 run : |
4848 README_FILE="README.md"
4949 TMP_FILE=$(mktemp)
50+ PLUGIN_SLUG="enginescript-site-exporter"
5051
5152 # Update the version badge with the new version and logo
52- sed -E ' s#\[!\[Version\]\(https://img\.shields\.io/badge/Version-[0-9]+\.[0-9]+\.[0-9]+-orange\.svg\?logo=github\)\]\(https://github\.com/EngineScript/enginescript-site-optimizer/ releases/download/v[0-9]+\.[0-9]+\.[0-9]+/enginescript-site-optimizer- [0-9]+\.[0-9]+\.[0-9]+\.zip\)#[](https://github.com/EngineScript/enginescript-site-optimizer/ releases/download/v'"$VERSION"'/enginescript-site-optimizer-'"$ VERSION"' .zip)#g' "$README_FILE" > "$TMP_FILE"
53+ sed -E " s#\[!\[Version\]\(https://img\.shields\.io/badge/Version-[0-9]+\.[0-9]+\.[0-9]+-orange\.svg\?logo=github\)\]\(https://github\.com/[^/]+/${PLUGIN_SLUG}/ releases/(latest/ download|download /v[0-9]+\.[0-9]+\.[0-9]+)/${PLUGIN_SLUG}- [0-9]+\.[0-9]+\.[0-9]+\.zip\)#[](https://github.com/${{ github.repository }}/ releases/latest/ download/${PLUGIN_SLUG}-${ VERSION} .zip)#g" "$README_FILE" > "$TMP_FILE"
5354
5455 # Replace file if changes were made
5556 if ! cmp -s "$README_FILE" "$TMP_FILE"; then
Original file line number Diff line number Diff line change 66 "markdown" : true ,
77 "scminput" : true ,
88 "shellscript" : true ,
9- "javascript" : true
9+ "javascript" : true ,
10+ "github-actions-workflow" : true
1011 }
1112}
You can’t perform that action at this time.
0 commit comments