From f9762ff0957b279ba8a420b87adde889d1663cb3 Mon Sep 17 00:00:00 2001 From: Josep Bigorra Date: Thu, 3 Oct 2024 23:29:06 +0200 Subject: [PATCH] zzspec byggsteg --- .github/workflows/on-pull-request-byggsteg.yaml | 6 +----- .github/workflows/on-push-to-trunk-byggsteg.yaml | 6 ++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/on-pull-request-byggsteg.yaml b/.github/workflows/on-pull-request-byggsteg.yaml index ca62105..d3924ac 100644 --- a/.github/workflows/on-pull-request-byggsteg.yaml +++ b/.github/workflows/on-pull-request-byggsteg.yaml @@ -15,8 +15,4 @@ jobs: curl 'https://byggsteg.jointhefreeworld.org/api/jobs/submit' \ -X POST -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Authorization: Basic ${{secrets.BYGGSTEG_KEY}}' \ - --data-urlencode "project=zzspec" \ - --data-urlencode "branch-name=${{ github.head_ref || github.ref_name }}" \ - --data-urlencode "task=sbt-test" \ - --data-urlencode "clone-url=https://github.com/jjba23/zzspec" - + --data-urlencode "job-code=\`((project . \"zzspec\")(branch-name . \"${{ github.head_ref || github.ref_name }}\")(task . \"pull-and-restart\")(clone-url . \"https://github.com/jjba23/zzspec\"))" diff --git a/.github/workflows/on-push-to-trunk-byggsteg.yaml b/.github/workflows/on-push-to-trunk-byggsteg.yaml index ef531ae..82bab0d 100644 --- a/.github/workflows/on-push-to-trunk-byggsteg.yaml +++ b/.github/workflows/on-push-to-trunk-byggsteg.yaml @@ -14,8 +14,6 @@ jobs: curl 'https://byggsteg.jointhefreeworld.org/api/jobs/submit' \ -X POST -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Authorization: Basic ${{secrets.BYGGSTEG_KEY}}' \ - --data-urlencode "project=zzspec" \ - --data-urlencode "branch-name=trunk" \ - --data-urlencode "task=sbt-test" \ - --data-urlencode "clone-url=https://github.com/jjba23/zzspec" + --data-urlencode "job-code=\`((project . \"zzspec\")(branch-name . \"trunk\")(task . \"sbt-test\")(clone-url . \"https://github.com/jjba23/zzspec\"))" +