Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
0996a098fb
commit
aa2a2c3f60
1 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,7 @@ jobs:
|
|||
- name: Install dependencies for other steps
|
||||
shell: sh
|
||||
run: |
|
||||
apk add --no-cache git nodejs npm bash sed
|
||||
apk add --no-cache git nodejs npm bash sed curl
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
@ -23,8 +23,7 @@ jobs:
|
|||
shell: sh
|
||||
run: |
|
||||
PACKAGE="curl"
|
||||
LATEST=$(apk policy "$PACKAGE" | sed -n '2p' | sed 's/^[[:space:]]*//; s/[[:space:]:]*$//')
|
||||
echo "LATEST_VERSION=$LATEST" >> $GITHUB_ENV
|
||||
LATEST=$(apk policy "$PACKAGE" | awk '/^[[:space:]]*[0-9]/ { gsub(":", "", $1); print $1; exit }') echo "LATEST_VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "latest_version=$LATEST" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Compare with last known version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue