From 2d07dbbbdb8a3f8d990c41edf74eafea0e606117 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 22 Oct 2024 19:29:01 +0200 Subject: [PATCH] Test dispatch --- .forgejo/workflows/linting.yml | 8 ++++++++ .forgejo/workflows/unlighthouse.yml | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/linting.yml b/.forgejo/workflows/linting.yml index f68bdf7..c53a6e7 100644 --- a/.forgejo/workflows/linting.yml +++ b/.forgejo/workflows/linting.yml @@ -23,3 +23,11 @@ jobs: run: npm i - name: Run astro check (linting + static analysis) 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 \ No newline at end of file diff --git a/.forgejo/workflows/unlighthouse.yml b/.forgejo/workflows/unlighthouse.yml index 49b799f..43ee561 100644 --- a/.forgejo/workflows/unlighthouse.yml +++ b/.forgejo/workflows/unlighthouse.yml @@ -1,7 +1,10 @@ on: - push: - tags: - - '[0-9]+\.[0-9]+\.[0-9]+-ulh\.[0-9]+' + workflow_dispatch: + inputs: + container_tag: + description: "Tag of the container to test" + default: "preview" + type: "string" jobs: unlighthouse: @@ -10,7 +13,7 @@ jobs: image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.3.0 services: website: - image: forgejo.neshweb.net/firq/firq-dev-website:preview + image: forgejo.neshweb.net/firq/firq-dev-website:${{ inputs.container_tag }} options: >- --workdir / steps: