Skip to content

Commit

Permalink
add byggsteg ci call on pull requests (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjba23 authored Oct 1, 2024
2 parents 2d2922f + 4a001f2 commit 86b25c9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/on-pull-request-byggsteg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "on pull request - byggsteg"

on:
pull_request:
types:
- opened
- edited

jobs:
on-pull-request-byggsteg:
runs-on: ubuntu-latest
steps:
- name: "trigger build and test at byggsteg"
run: |
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"
21 changes: 21 additions & 0 deletions .github/workflows/on-push-to-trunk-byggsteg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "on push to trunk - byggsteg"

on:
push:
branches:
- trunk

jobs:
on-push-to-trunk-byggsteg:
runs-on: ubuntu-latest
steps:
- name: "trigger build and test at byggsteg"
run: |
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"

0 comments on commit 86b25c9

Please sign in to comment.