From a223ed6d169ad2c6ab49596c64f9d7b706f9d9c8 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Thu, 4 Dec 2025 11:31:10 +0000 Subject: [PATCH 1/2] Re-enable graph creation using CI --- .github/workflows/Build.yaml | 43 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 132b64537..94a35fb52 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -77,28 +77,27 @@ jobs: disable_globbing: true commit_message: "🤖 Updates baselines for Dependency Guard" -# See https://github.com/android/nowinandroid/issues/2005 -# - name: Update Graphs -# run: ./gradlew graphUpdate -# -# - name: Check Graphs -# id: graphs_verify -# run: git add -- "**/README.md" && git diff --cached --quiet --exit-code -- "**/README.md" -# -# - name: Prevent updating graphs if this is a fork -# id: checkfork_graphs -# continue-on-error: false -# if: steps.graphs_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository -# run: | -# echo "::error::Check Graphs failed, please update graphs with: ./gradlew graphUpdate" && exit 1 -# -# - name: Push new graphs if available -# if: steps.graphs_verify.outcome == 'failure' && github.event_name == 'pull_request' -# uses: stefanzweifel/git-auto-commit-action@v5 -# with: -# file_pattern: '**/README.md' -# disable_globbing: true -# commit_message: "🤖 Updates graphs" + - name: Update Graphs + run: ./gradlew graphUpdate + + - name: Check Graphs + id: graphs_verify + run: git add -- "**/README.md" && git diff --cached --quiet --exit-code -- "**/README.md" + + - name: Prevent updating graphs if this is a fork + id: checkfork_graphs + continue-on-error: false + if: steps.graphs_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository + run: | + echo "::error::Check Graphs failed, please update graphs with: ./gradlew graphUpdate" && exit 1 + + - name: Push new graphs if available + if: steps.graphs_verify.outcome == 'failure' && github.event_name == 'pull_request' + uses: stefanzweifel/git-auto-commit-action@v5 + with: + file_pattern: '**/README.md' + disable_globbing: true + commit_message: "🤖 Updates graphs" - name: Run all local screenshot tests (Roborazzi) id: screenshotsverify From 003dbb07aaebcbd3df2e84212b5ab9bd7f9548ea Mon Sep 17 00:00:00 2001 From: Don Turner Date: Thu, 4 Dec 2025 11:53:06 +0000 Subject: [PATCH 2/2] Update .github/workflows/Build.yaml Co-authored-by: Simon Marquis --- .github/workflows/Build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 94a35fb52..e31ac333a 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -79,6 +79,7 @@ jobs: - name: Update Graphs run: ./gradlew graphUpdate + continue-on-error: true - name: Check Graphs id: graphs_verify