Skip to content

Commit a223ed6

Browse files
committed
Re-enable graph creation using CI
1 parent 4677915 commit a223ed6

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

.github/workflows/Build.yaml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,27 @@ 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+
83+
- name: Check Graphs
84+
id: graphs_verify
85+
run: git add -- "**/README.md" && git diff --cached --quiet --exit-code -- "**/README.md"
86+
87+
- name: Prevent updating graphs if this is a fork
88+
id: checkfork_graphs
89+
continue-on-error: false
90+
if: steps.graphs_verify.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository
91+
run: |
92+
echo "::error::Check Graphs failed, please update graphs with: ./gradlew graphUpdate" && exit 1
93+
94+
- name: Push new graphs if available
95+
if: steps.graphs_verify.outcome == 'failure' && github.event_name == 'pull_request'
96+
uses: stefanzweifel/git-auto-commit-action@v5
97+
with:
98+
file_pattern: '**/README.md'
99+
disable_globbing: true
100+
commit_message: "🤖 Updates graphs"
102101

103102
- name: Run all local screenshot tests (Roborazzi)
104103
id: screenshotsverify

0 commit comments

Comments
 (0)