Skip to content

Commit 5d04804

Browse files
committed
Shortcut release builds that aren't 'published' action
1 parent dbfaa14 commit 5d04804

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
env:
1717
GITHUB_CONTEXT: ${{ toJson(github) }}
1818
run: echo "$GITHUB_CONTEXT"
19+
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
20+
run: exit 1
21+
if: github.event_name == 'release' && github.event.action != 'published'
1922
- name: Set up Python 3.5
2023
uses: actions/setup-python@v1
2124
with:

.github/workflows/create_website_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
env:
1111
GITHUB_CONTEXT: ${{ toJson(github) }}
1212
run: echo "$GITHUB_CONTEXT"
13+
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
14+
run: exit 1
15+
if: github.event.action != 'published'
1316
- name: Set up Python 3.5
1417
uses: actions/setup-python@v1
1518
with:

tools/build_board_info.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create_pr(changes, updated, git_info):
130130
updated_list.append(info)
131131

132132
updated = json.dumps(updated_list, sort_keys=True, indent=4).encode("utf-8") + b"\n"
133-
print(updated.decode("utf-8"))
133+
#print(updated.decode("utf-8"))
134134
pr_title = "Automated website update for release {}".format(changes["new_release"])
135135
boards = ""
136136
if changes["new_boards"]:
@@ -238,7 +238,6 @@ def generate_download_info():
238238

239239
board_mapping = get_board_mapping()
240240

241-
print(previous_releases)
242241
for release in previous_releases:
243242
update_downloads(board_mapping, release)
244243

0 commit comments

Comments
 (0)