Skip to content

Commit c831d46

Browse files
committed
images: don't update based on pushes to master
This causes build failures, because these are usually the "automated update by adabot", and when the workflow runs the new release has been created but the metadata is not yet available. Instead, rely on the cron coming a few hours after adabot so that the metadata is created & ready. Typical failure: ``` Requesting redirect information: https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest Tag: '20210531' New version available 20210531. get bundle metadata from https://adafruit-circuit-python.s3.amazonaws.com/bundles/adafruit/adafruit-circuitpython-bundle-20210531.json from get_imports import ( File "/home/runner/work/Adafruit_CircuitPython_Bundle/Adafruit_CircuitPython_Bundle/CircuitPython_Library_Screenshot_Maker/get_imports.py", line 107, in <module> bundle_data = json.load(f) File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/json/__init__.py", line 293, in load return loads(fp.read(), File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ```
1 parent fc7ba9f commit c831d46

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.github/workflows/images.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
schedule:
55
- cron: '0 10 * * *'
66
workflow_dispatch:
7-
push:
8-
branches: [master]
97

108
concurrency:
119
group: folder-images

0 commit comments

Comments
 (0)