Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
a410ca0fa3
commit
5b4fca5984
1 changed files with 8 additions and 10 deletions
|
@ -5,6 +5,10 @@ on:
|
|||
schedule:
|
||||
- cron: '12 */3 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: dind
|
||||
|
||||
env:
|
||||
PACKAGE: rsync
|
||||
DOCKER_REGISTRY: git.shork.ch
|
||||
|
@ -13,10 +17,6 @@ env:
|
|||
COMMIT_AUTHOR_EMAIL: "forgejo-runner@shork.ch"
|
||||
COMMIT_MESSAGE: "Update build metadata"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: dind
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
shell: sh
|
||||
|
@ -29,13 +29,11 @@ jobs:
|
|||
apk upgrade --no-cache -a
|
||||
apk add --no-cache git nodejs npm bash sed $PACKAGE
|
||||
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Get latest package version
|
||||
id: check
|
||||
run: |
|
||||
|
||||
main_version=$(curl -s https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz \
|
||||
| tar -xzO \
|
||||
| grep -a 'cmd:rsync=' | sed 's/.*cmd:rsync=//' | sort -V | tail -n 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue