Skip to content

Commit 47a9abd

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Merge branch 'main' into Hani/clear_from_name_org
2 parents ea9ea12 + 78563ae commit 47a9abd

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/check-devedition.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check new devedition version
22

33
on:
44
schedule:
5-
- cron: "46 */12 * * *"
5+
- cron: "38 * * * *"
66
env:
77
LATEST: ""
88
permissions:
@@ -30,17 +30,17 @@ jobs:
3030
echo win=$(pipenv run python -c 'from modules import testrail_integration as tri; print(tri.reportable("Windows"))') >> "$GITHUB_OUTPUT"
3131
echo mac=$(pipenv run python -c 'from modules import testrail_integration as tri; print(tri.reportable("Darwin"))') >> "$GITHUB_OUTPUT"
3232
Run-Win-Smoke:
33-
needs: Check-Beta-Version
34-
if: ${{ needs.Check-Beta-Version.outputs.win_reportable == 'True' }}
33+
needs: Check-DevEdition-Version
34+
if: ${{ needs.Check-DevEdition-Version.outputs.win_reportable == 'True' }}
3535
uses: ./.github/workflows/smoke.yml
3636
with:
3737
channel: "devedition"
3838
job_to_run: Smoke-Windows
3939
secrets: inherit
4040

4141
Run-Mac-Smoke:
42-
needs: Check-Beta-Version
43-
if: ${{ needs.Check-Beta-Version.outputs.mac_reportable == 'True' }}
42+
needs: Check-DevEdition-Version
43+
if: ${{ needs.Check-DevEdition-Version.outputs.mac_reportable == 'True' }}
4444
uses: ./.github/workflows/smoke.yml
4545
with:
4646
channel: "devedition"

modules/testrail_integration.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ def reportable(platform_to_test=None):
9898
logging.warning(f"Got version from collect_executable.py! {version}")
9999
tr_session = testrail_init()
100100
major_number, second_half = version.split(".")
101-
minor_num, build_num = second_half.split("-")
102-
channel = os.environ.get("FX_CHANNEL").title()
101+
if "-" in second_half:
102+
minor_num, _ = second_half.split("-")
103+
else:
104+
minor_num = second_half
105+
channel = os.environ.get("FX_CHANNEL") or "beta"
106+
channel = channel.title()
103107
if not channel:
104108
if "b" in minor_num:
105109
channel = "Beta"

0 commit comments

Comments
 (0)