Skip to content

Commit ffb05cb

Browse files
committed
fix assets build for prometheus and grafana
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
1 parent 66e197d commit ffb05cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/merge-acm-flow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
- name: Resolve conflict due to deleted downstream files
163163
if: ${{ steps.merge.outputs.MERGE_CONFLICT == 'true' }}
164164
run: |
165-
git status --porcelain | awk '{ if ($1=="UD" || $1=="DU" || $1=="UU" || $1=="U") print $2 }' | xargs -I {} git rm {}
165+
git status --porcelain | awk '{ if ($1=="UD" || $1=="DU" || $1=="U") print $2 }' | xargs -I {} git rm {}
166166
- name: Continue after merge conflict
167167
if: ${{ steps.merge.outputs.MERGE_CONFLICT == 'true' }}
168168
run: |

.github/workflows/merge-acm-grafana.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
go run ./pkg/build/wire/cmd/wire/main.go gen -tags oss ./pkg/server
5858
5959
# Commit assets
60-
git add pkg/server/wire_gen.go ./public/build ./public/app/plugins/datasource/*/dist/*
60+
git add pkg/server/wire_gen.go ./public/build ./public/app/plugins/
6161
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate"
6262
downstream-version-expression: |
63-
sed -n -E 's/^.*\"version\": *\"([0-9]+\.[0-9]+\.[0-9]+)\".*$/v\1/p' https://raw.githubusercontent.com/stolostron/grafana/release-2.12/package.json
63+
sed -n -E 's/^.*\"version\": *\"([0-9]+\.[0-9]+\.[0-9]+)\".*$/v\1/p' https://raw.githubusercontent.com/stolostron/grafana/release-2.17/package.json
6464
secrets:
6565
pr-app-id: ${{ secrets.ACM_APP_ID }}
6666
pr-app-private-key: ${{ secrets.ACM_APP_PRIVATE_KEY }}

.github/workflows/merge-prometheus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if ! git diff --exit-code origin/main web/ui; then
3636
make assets-compress
3737
find web/ui/static -type f -name '*.gz' -exec git add {} \;
38-
git add web/ui/embed.go
38+
git add web/ui/
3939
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate"
4040
fi
4141

0 commit comments

Comments
 (0)