mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-03 12:03:02 +00:00
CI: Pass the github.event_name to matrix.py
This is a preparation to later run some matrix entries on schedule only. Within the matrix.py script it can now be detected whether the workflow is running on schedule by using: if build_type == "schedule": matrix.append(...)
This commit is contained in:
parent
f34ed0b74c
commit
8d173e17c0
9
.github/matrix.py
vendored
9
.github/matrix.py
vendored
@ -7,6 +7,15 @@
|
||||
# 2 of the License, or (at your option) any later version.
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
if len(sys.argv) == 2:
|
||||
build_type = sys.argv[1]
|
||||
else:
|
||||
print("Usage: {} <build_type>".format(sys.argv[0]), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
print("Generating matrix for type '{}'.".format(build_type))
|
||||
|
||||
|
||||
def clean_os(os):
|
||||
|
2
.github/workflows/vtest.yml
vendored
2
.github/workflows/vtest.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Generate Build Matrix
|
||||
id: set-matrix
|
||||
run: python3 .github/matrix.py
|
||||
run: python3 .github/matrix.py "${{ github.event_name }}"
|
||||
|
||||
# The Test job actually runs the tests.
|
||||
Test:
|
||||
|
Loading…
Reference in New Issue
Block a user