Iterate on the script #2
This commit is contained in:
parent
d8b506eaff
commit
470902d281
1 changed files with 2 additions and 17 deletions
19
.github/workflows/scripts/recordScreenshots.sh
vendored
19
.github/workflows/scripts/recordScreenshots.sh
vendored
|
|
@ -26,27 +26,12 @@ if [[ -z ${GITHUB_REPOSITORY} ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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"
|
echo "Record screenshots"
|
||||||
./gradlew recordPaparazziDebug --stacktrace -PpreDexEnable=false --max-workers 4 --warn
|
./gradlew recordPaparazziDebug --stacktrace -PpreDexEnable=false --max-workers 4 --warn
|
||||||
|
|
||||||
echo "Committing changes"
|
echo "Committing changes"
|
||||||
|
git config user.name "ElementBot"
|
||||||
|
git config user.email "benoitm+elementbot@element.io"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Update screenshots"
|
git commit -m "Update screenshots"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue