From 470902d281ff8e2deb5cc24e81eb7c5042a7ae6f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 2 Jun 2023 17:01:26 +0200 Subject: [PATCH] Iterate on the script #2 --- .../workflows/scripts/recordScreenshots.sh | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/scripts/recordScreenshots.sh b/.github/workflows/scripts/recordScreenshots.sh index d8cdbd0c6f..8400d86913 100755 --- a/.github/workflows/scripts/recordScreenshots.sh +++ b/.github/workflows/scripts/recordScreenshots.sh @@ -26,27 +26,12 @@ if [[ -z ${GITHUB_REPOSITORY} ]]; then exit 1 fi -if [[ -z ${GITHUB_REF_NAME} ]]; then - echo "Missing GITHUB_REF_NAME variable" - exit 1 -fi - -git config user.name "ElementBot" -git config user.email "benoitm+elementbot@element.io" - -echo "Git status" -git status - -echo "Fetching..." -git fetch --all - -echo "Checkout origin/$GITHUB_REF_NAME" -git checkout "origin/$GITHUB_REF_NAME" - echo "Record screenshots" ./gradlew recordPaparazziDebug --stacktrace -PpreDexEnable=false --max-workers 4 --warn echo "Committing changes" +git config user.name "ElementBot" +git config user.email "benoitm+elementbot@element.io" git add -A git commit -m "Update screenshots"