Skip to content

Commit 9e7e8a1

Browse files
committed
Try to only trigger fedora in merge-queue
1 parent 1d974f2 commit 9e7e8a1

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/autoconf-check.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ jobs:
5656
working-directory: release
5757
run: .github/jobs/configure-checks/setup_configure_image.sh
5858

59+
- name: Trigger fedora testing
60+
#if: ${{ github.event_name != 'merge_group' }}
61+
run: |
62+
curl -X POST \
63+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
64+
-H "Accept: application/vnd.github+json" \
65+
https://api.github.com/repos/domjudge/domjudge/actions/workflows/autoconf-check-different-distro.yml/dispatches \
66+
-d '{"ref":"main"}'
67+
5968
debian-family:
6069
needs: build
6170
strategy:
@@ -94,3 +103,42 @@ jobs:
94103
working-directory: release
95104
run: .github/jobs/configure-checks/setup_configure_image.sh
96105

106+
#name: Build and Trigger Workflows
107+
## Either just filter the fedora stuff in onther build step (and run on main but skip) or trigger 2 workflows. I don't work enough with GHA to see which one I prefer for now.
108+
#
109+
#on:
110+
# push:
111+
# branches:
112+
# - main
113+
#
114+
#jobs:
115+
# build:
116+
# name: Build Artifact
117+
# runs-on: ubuntu-latest
118+
#
119+
# steps:
120+
# - name: Checkout code
121+
# uses: actions/checkout@v3
122+
#
123+
# - name: Build project
124+
# run: |
125+
# # Example build command
126+
# mkdir -p build
127+
# echo "Artifact content" > build/artifact.txt
128+
#
129+
# - name: Upload artifact
130+
# uses: actions/upload-artifact@v3
131+
# with:
132+
# name: my-artifact
133+
# path: build/artifact.txt
134+
#
135+
#
136+
# - name: Trigger workflow 2
137+
# run: |
138+
# curl -X POST \
139+
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
140+
# -H "Accept: application/vnd.github+json" \
141+
# https://api.github.com/repos/${{ github.repository }}/actions/workflows/workflow_2.yml/dispatches \
142+
# -d '{"ref":"main"}'
143+
#
144+
#

0 commit comments

Comments
 (0)