Skip to content

Commit 55970c2

Browse files
authored
Merge pull request #2008 from android/dt/fix-graphs
Re-enable graph creation using CI
2 parents 5ca1361 + 003dbb0 commit 55970c2

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/Build.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,28 @@ jobs:
7777
disable_globbing: true
7878
commit_message: "🤖 Updates baselines for Dependency Guard"
7979

80-
# See https://github.com/android/nowinandroid/issues/2005
81-
# - name: Update Graphs
82-
# run: ./gradlew graphUpdate
83-
#
84-
# - name: Check Graphs
85-
# id: graphs_verify
86-
# run: git add -- "**/README.md" && git diff --cached --quiet --exit-code -- "**/README.md"
87-
#
88-
# - name: Prevent updating graphs if this is a fork
89-
# id: checkfork_graphs
90-
# continue-on-error: false
91-
# if: steps.graphs_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository
92-
# run: |
93-
# echo "::error::Check Graphs failed, please update graphs with: ./gradlew graphUpdate" && exit 1
94-
#
95-
# - name: Push new graphs if available
96-
# if: steps.graphs_verify.outcome == 'failure' && github.event_name == 'pull_request'
97-
# uses: stefanzweifel/git-auto-commit-action@v5
98-
# with:
99-
# file_pattern: '**/README.md'
100-
# disable_globbing: true
101-
# commit_message: "🤖 Updates graphs"
80+
- name: Update Graphs
81+
run: ./gradlew graphUpdate
82+
continue-on-error: true
83+
84+
- name: Check Graphs
85+
id: graphs_verify
86+
run: git add -- "**/README.md" && git diff --cached --quiet --exit-code -- "**/README.md"
87+
88+
- name: Prevent updating graphs if this is a fork
89+
id: checkfork_graphs
90+
continue-on-error: false
91+
if: steps.graphs_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository
92+
run: |
93+
echo "::error::Check Graphs failed, please update graphs with: ./gradlew graphUpdate" && exit 1
94+
95+
- name: Push new graphs if available
96+
if: steps.graphs_verify.outcome == 'failure' && github.event_name == 'pull_request'
97+
uses: stefanzweifel/git-auto-commit-action@v5
98+
with:
99+
file_pattern: '**/README.md'
100+
disable_globbing: true
101+
commit_message: "🤖 Updates graphs"
102102

103103
- name: Run all local screenshot tests (Roborazzi)
104104
id: screenshotsverify

0 commit comments

Comments
 (0)