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,18 +5,18 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '12 */3 * * *'
|
- cron: '12 */3 * * *'
|
||||||
|
|
||||||
env:
|
|
||||||
PACKAGE: rsync
|
|
||||||
DOCKER_REGISTRY: git.shork.ch
|
|
||||||
REGISTRY_USER: melody
|
|
||||||
COMMIT_AUTHOR_NAME: "forgejo-runner"
|
|
||||||
COMMIT_AUTHOR_EMAIL: "forgejo-runner@shork.ch"
|
|
||||||
COMMIT_MESSAGE: "Update build metadata"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: dind
|
runs-on: dind
|
||||||
|
|
||||||
|
env:
|
||||||
|
PACKAGE: rsync
|
||||||
|
DOCKER_REGISTRY: git.shork.ch
|
||||||
|
REGISTRY_USER: melody
|
||||||
|
COMMIT_AUTHOR_NAME: "forgejo-runner"
|
||||||
|
COMMIT_AUTHOR_EMAIL: "forgejo-runner@shork.ch"
|
||||||
|
COMMIT_MESSAGE: "Update build metadata"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: sh
|
shell: sh
|
||||||
|
@ -29,13 +29,11 @@ jobs:
|
||||||
apk upgrade --no-cache -a
|
apk upgrade --no-cache -a
|
||||||
apk add --no-cache git nodejs npm bash sed $PACKAGE
|
apk add --no-cache git nodejs npm bash sed $PACKAGE
|
||||||
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get latest package version
|
- name: Get latest package version
|
||||||
id: check
|
id: check
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
main_version=$(curl -s https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz \
|
main_version=$(curl -s https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz \
|
||||||
| tar -xzO \
|
| tar -xzO \
|
||||||
| grep -a 'cmd:rsync=' | sed 's/.*cmd:rsync=//' | sort -V | tail -n 1)
|
| grep -a 'cmd:rsync=' | sed 's/.*cmd:rsync=//' | sort -V | tail -n 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue