From 9856b2ab159d60a8d967625a610b4c65b97288be Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sun, 8 Dec 2024 22:02:19 +0000 Subject: [PATCH] flutter: Fix pushing PR in flutter-ref-images-bump.yml --- .github/workflows/flutter-ref-images-bump.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/flutter-ref-images-bump.yml b/.github/workflows/flutter-ref-images-bump.yml index 638f4e39e..81307f12c 100644 --- a/.github/workflows/flutter-ref-images-bump.yml +++ b/.github/workflows/flutter-ref-images-bump.yml @@ -32,7 +32,10 @@ jobs: cd ../.. git add tests/reference-images/ if [ -n "$(git status --porcelain)" ]; then + BRANCH_NAME=update/ref-images/`git rev-parse HEAD` + git checkout -B $BRANCH_NAME git commit -m "Bump tests/reference-images/" + git push origin $BRANCH_NAME gh pr create --base main --title "Bump tests/reference-images/" --body "Automatically created via GH actions." fi env: