Test dispatch
All checks were successful
/ get-version (push) Successful in 2s
/ run-unlighthouse (push) Successful in 0s
/ astro-check (push) Successful in 14s

This commit is contained in:
Firq 2024-10-22 19:29:01 +02:00
parent 6e3d23e8f7
commit 2d07dbbbdb
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 15 additions and 4 deletions

View file

@ -23,3 +23,11 @@ jobs:
run: npm i run: npm i
- name: Run astro check (linting + static analysis) - name: Run astro check (linting + static analysis)
run: npm run astro check run: npm run astro check
run-unlighthouse:
runs-on: docker
steps:
- name: Launch workflow
run: |
curl -X POST -H "Authorization: ${GITHUB_TOKEN}" \
-d '{"ref": "${GITHUB_REF_NAME}", "inputs": { "container_tag": "0.2.0-pre.13" }}' \
"${GITHUB_API_URL}/repos/{GITHUB_REPOSITORY}/actions/workflows/unlighthouse/dispatches" -v

View file

@ -1,7 +1,10 @@
on: on:
push: workflow_dispatch:
tags: inputs:
- '[0-9]+\.[0-9]+\.[0-9]+-ulh\.[0-9]+' container_tag:
description: "Tag of the container to test"
default: "preview"
type: "string"
jobs: jobs:
unlighthouse: unlighthouse:
@ -10,7 +13,7 @@ jobs:
image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.3.0 image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.3.0
services: services:
website: website:
image: forgejo.neshweb.net/firq/firq-dev-website:preview image: forgejo.neshweb.net/firq/firq-dev-website:${{ inputs.container_tag }}
options: >- options: >-
--workdir / --workdir /
steps: steps: