.gitea/workflows/update-check.yml aktualisiert
All checks were successful
Pagefind Update Check / update-check (push) Successful in 1s
All checks were successful
Pagefind Update Check / update-check (push) Successful in 1s
This commit is contained in:
parent
712e702be3
commit
e22420d7c2
@ -1,14 +1,13 @@
|
|||||||
name: release
|
name: Pagefind Update Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '@hourly'
|
- cron: '@daily'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
update-check:
|
||||||
runs-on: act-runner-user
|
runs-on: act-runner-user
|
||||||
steps:
|
steps:
|
||||||
- name: check pagefind version
|
- name: check pagefind version
|
||||||
@ -18,7 +17,7 @@ jobs:
|
|||||||
export CURRENT_PAGEFIND_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("pagefind"))) | .[0].version')
|
export CURRENT_PAGEFIND_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("pagefind"))) | .[0].version')
|
||||||
echo update_available=$(! [[ $NEWEST_PAGEFIND_RELEASE != $CURRENT_PAGEFIND_RELEASE ]]; echo $?) >> $GITHUB_OUTPUT
|
echo update_available=$(! [[ $NEWEST_PAGEFIND_RELEASE != $CURRENT_PAGEFIND_RELEASE ]]; echo $?) >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: update hugo package
|
- name: update pagefind package
|
||||||
if: steps.check.outputs.update_available == 1
|
if: steps.check.outputs.update_available == 1
|
||||||
run: |
|
run: |
|
||||||
export NEWEST_PAGEFIND_RELEASE=$(curl -s https://api.github.com/repos/CloudCannon/pagefind/releases | jq -r '.[0].name')
|
export NEWEST_PAGEFIND_RELEASE=$(curl -s https://api.github.com/repos/CloudCannon/pagefind/releases | jq -r '.[0].name')
|
||||||
@ -37,4 +36,4 @@ jobs:
|
|||||||
if: steps.check.outputs.update_available == 1
|
if: steps.check.outputs.update_available == 1
|
||||||
with:
|
with:
|
||||||
chat_id: ${{ secrets.TG_CHAT_ID }}
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||||
token: ${{ secrets.TG_TOKEN }}
|
token: ${{ secrets.TG_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user