0
0

.gitea/workflows/update-check.yml aktualisiert
All checks were successful
Pagefind Update Check / update-check (push) Successful in 1s

This commit is contained in:
Denys Konovalov 2024-07-05 20:31:23 +02:00
parent 712e702be3
commit e22420d7c2

@ -1,14 +1,13 @@
name: release
name: Pagefind Update Check
on:
push:
branches:
- main
branches: [main]
schedule:
- cron: '@hourly'
- cron: '@daily'
jobs:
release:
update-check:
runs-on: act-runner-user
steps:
- 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')
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
run: |
export NEWEST_PAGEFIND_RELEASE=$(curl -s https://api.github.com/repos/CloudCannon/pagefind/releases | jq -r '.[0].name')