Browse Source

Improve screenshot action error handling

If the gradle build fails for some reason, the script should
bail out instead of carrying on and pushing a commit that
deletes all the screenshots[1]!

`set -e` simply makes the script return the appropriate
exit code immediately if any of the subcommands fails.

[1] e.g.
a58834240e
julioromano/fixTallAndWidePreviews
Chris Smith 1 year ago
parent
commit
d0b7f7689e
  1. 2
      .github/workflows/scripts/recordScreenshots.sh

2
.github/workflows/scripts/recordScreenshots.sh

@ -16,6 +16,8 @@ @@ -16,6 +16,8 @@
# limitations under the License.
#
set -e
TOKEN=$GITHUB_TOKEN
REPO=$GITHUB_REPOSITORY

Loading…
Cancel
Save