fixed download script for linux

This commit is contained in:
Joshua Wise 2022-05-15 23:45:24 -05:00
parent 81fee0a8d7
commit 9a98290bb4
2 changed files with 6 additions and 5 deletions

View File

@ -37,12 +37,12 @@ jobs:
- name: Push update branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Update SQLite to `${{ env.ENV_TRUE_VERSION }}`'
commit_message: 'Update SQLite to version ${{ env.ENV_TRUE_VERSION }}'
branch: sqlite-update-${{ env.ENV_VERSION }}
- name: Create new PR
uses: repo-sync/pull-request@v2
with:
github_token: ${{ secrets.PAT }}
source_branch: sqlite-update-${{ env.ENV_VERSION }}
pr_title: 'Update SQLite to \`${{ env.ENV_TRUE_VERSION }}\`'
pr_body: 'This is an automated pull request, updating SQLite version to \`${{ env.ENV_TRUE_VERSION }}\`.'
pr_title: 'Update SQLite to version ${{ env.ENV_TRUE_VERSION }}'
pr_body: 'This is an automated pull request, updating SQLite to version \`${{ env.ENV_TRUE_VERSION }}\`.'

5
deps/download.sh vendored
View File

@ -98,8 +98,9 @@ DOCS="$DEPS/../docs/compilation.md"
MAJOR=`expr "${VERSION:0:1}" + 0`
MINOR=`expr "${VERSION:1:2}" + 0`
PATCH=`expr "${VERSION:3:2}" + 0`
sed -Ei "" -e "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DOCS"
sed -i "" -e "/^SQLITE_/,\$d" "$DOCS"
sed -Ei.bak -e "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DOCS"
sed -i.bak -e "/^SQLITE_/,\$d" "$DOCS"
rm "$DOCS".bak
printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
printf "\`\`\`\n" >> "$DOCS"