From 329f36e521f37cca0d6cd60190c760a5b261962b Mon Sep 17 00:00:00 2001 From: John McDole Date: Wed, 5 Mar 2025 15:07:54 -0800 Subject: [PATCH] Add a workflow (only triggered from rest events) for hasing experiment (#164657) --- .github/workflows/content-aware-hash.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/content-aware-hash.yml diff --git a/.github/workflows/content-aware-hash.yml b/.github/workflows/content-aware-hash.yml new file mode 100644 index 0000000000..6fd3572480 --- /dev/null +++ b/.github/workflows/content-aware-hash.yml @@ -0,0 +1,22 @@ +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +name: Generate a content aware hash for the Flutter Engine + +on: workflow_dispatch + +jobs: + hash: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Fetch base commit and origin/master + run: | + git fetch --no-tags --prune --depth=1 origin ${{ github.event.pull_request.base.sha }} + + - name: Generate Hash + run: | + git ls-tree HEAD DEPS bin/internal/release-candidate-branch.version engine | git hash-object --stdin