From 1ecf0d621646755e8c6be094e4cfdae8b134d91b Mon Sep 17 00:00:00 2001 From: Martin-Belton-gov Date: Fri, 26 Jan 2024 13:45:26 +0000 Subject: [PATCH] Modified steps --- .github/workflows/release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2471734..b2e0b88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,24 +51,21 @@ jobs: - name: Install jq run: sudo apt-get install jq - - name: Read existing plugin.json + - name: Read existing plugin.json and add alerting is true run: | file_path="/home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/dfe-azurecostbackend-datasource/dist/plugin.json" existing_json=$(cat "$file_path") echo "Existing JSON:" echo "$existing_json" - - - name: Add alerting is true to plugin.json - run: | new_json=$(echo "$existing_json" | jq '. + { "alerting": true }') echo "Modified JSON:" echo "$new_json" - - - name: Save modified JSON back to the file - run: echo "$new_json" > "$file_path" + echo "$new_json" > "$file_path" - name: Display modified JSON - run: cat "$file_path" + run: | + file_path="/home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/dfe-azurecostbackend-datasource/dist/plugin.json" + cat "$file_path" - name: Stop Workflow After Showing json if: always() # Change this condition as needed