diff --git a/.github/workflows/update_goldens.yml b/.github/workflows/update_goldens.yml index 0f35d1c80..2ffcc2eec 100644 --- a/.github/workflows/update_goldens.yml +++ b/.github/workflows/update_goldens.yml @@ -6,16 +6,18 @@ jobs: update_goldens: runs-on: ubuntu-latest steps: - - name: Ensure branch is not master + - name: 🚫 Ensure branch is not master if: ${{ github.event.inputs.branch == 'master' || github.event.inputs.branch == 'origin/master'}} - run: exit 1 + run: | + echo "Updating goldens on 'master' branch is prohibited." + exit 1 - name: 📚 Checkout branch uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.branch }} - - name: Install Flutter + - name: 🐦 Install Flutter uses: subosito/flutter-action@v2 with: flutter-version: "3.x" @@ -23,20 +25,19 @@ jobs: cache: true cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} - - name: "Install Tools" - run: | - flutter pub global activate melos + - name: 📦 Install Tools + run: flutter pub global activate melos - - name: "Bootstrap Workspace" + - name: 🔧 Bootstrap Workspace run: melos bootstrap --verbose - - name: Update Goldens + - name: 🖼️ Update Goldens working-directory: packages/stream_chat_flutter continue-on-error: true run: | flutter test --tags golden --update-goldens - - name: Commit Changes + - name: 📤 Commit Changes id: commit_changes uses: stefanzweifel/git-auto-commit-action@v5 with: