Skip to content

Commit

Permalink
Modified steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Belton-gov committed Jan 26, 2024
1 parent 63ff31a commit 1ecf0d6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ecf0d6

Please sign in to comment.