Skip to content

Commit 85a2210

Browse files
committed
do not commit costs
1 parent a44f20b commit 85a2210

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/generate-go-docs.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
fetch-depth: 0
4040

41-
- name: Detect changes
41+
- name: Detect changes related to current PR
4242
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
4343
id: changes
4444
with:
@@ -57,7 +57,7 @@ jobs:
5757
- 'framework/**/*.go'
5858
# later add tools here or make this filter dynamic (if possible)
5959
60-
- name: Find all go modules
60+
- name: Find all go modules in the repository and filter the ones that changed
6161
shell: bash
6262
id: go-modules
6363
env:
@@ -100,11 +100,15 @@ jobs:
100100
done
101101
rm filtered_folders.json
102102
103-
- name: Save costs
103+
- name: Upload costs as artifact
104104
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
105105
with:
106106
name: generation-costs
107-
path: ./costs
107+
path: ./costs
108+
109+
- name: Remove costs before committing
110+
shell: bash
111+
run: rm -rf costs
108112

109113
- name: Setup GitHub Token for creating a new PR
110114
id: setup-github-token-write

0 commit comments

Comments
 (0)