| # 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 | |
| permissions: | |
| contents: read | |
| jobs: | |
| generate-engine-content-hash: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Generate Hash | |
| run: | | |
| # Script updated to handle gh-readonly-queue/ branches | |
| engine_content_hash=$(bin/internal/content_aware_hash.sh) | |
| # test notice annotation for retrival from api | |
| echo "::notice ::{\"engine_content_hash\": \"${engine_content_hash}\"}" | |
| # test summary writing | |
| echo "{\"engine_content_hash\": \"${engine_content_hash}\"" >> "$GITHUB_STEP_SUMMARY" |