From eb4471391af693031e9128471da4da0dd2c66d0c Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Sat, 23 Mar 2024 15:27:50 +0200 Subject: [PATCH] Bug Fix: release process cosign step Signed-off-by: Itay Grudev --- .github/workflows/release-publish-grafana.yml | 48 +++++++++---------- .github/workflows/release-publish.yml | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release-publish-grafana.yml b/.github/workflows/release-publish-grafana.yml index cd0455b..2434bb9 100644 --- a/.github/workflows/release-publish-grafana.yml +++ b/.github/workflows/release-publish-grafana.yml @@ -1,24 +1,24 @@ -#name: release-publish-grafana -# -#on: -# push: -# branches: -# - main -# paths: -# - 'charts/cluster/grafana-dashboard.json' -# -#jobs: -# release: -# runs-on: ubuntu-22.04 -# steps: -# - name: Checkout -# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 -# with: -# fetch-depth: 0 # important for fetching all history to run comparison against -# -# - name: Push dashboard to Grafana.com -# env: -# DASHBOARD_ID: 20417 -# GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}} -# run: | -# cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db +name: release-publish-grafana + +on: + push: + branches: + - main + paths: + - 'charts/cluster/grafana-dashboard.json' + +jobs: + release: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 0 # important for fetching all history to run comparison against + + - name: Push dashboard to Grafana.com + env: + DASHBOARD_ID: 20417 + GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}} + run: | + cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 7328b0c..5719193 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -71,7 +71,7 @@ jobs: # would be preserved, causing a non-zero exit. Set nullglob to fix this run: | shopt -s nullglob - for pkg in .cr-release-packages/*; do + for pkg in .cr-release-packages/*.tgz; do if [ -z "${pkg:-}" ]; then break fi