Skip to content

Commit

Permalink
check writing to files
Browse files Browse the repository at this point in the history
  • Loading branch information
CMIP-IPO: Automated GitHub Action committed Nov 17, 2023
1 parent a6f48b0 commit c9efbed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/version_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ jobs:
# working-directory: .github/libs # Adjusted the working directory
shell: bash

- name: Display Version Metadata for JSON Files
run: |
# Get the list of JSON files in the repository
json_files=$(git ls-tree --name-only -r HEAD | grep '\.json$')
# Iterate over each JSON file and display 'version_metadata'
for json_file in $json_files; do
metadata=$(git show HEAD:$json_file | jq -r '.version_metadata')
echo "File: $json_file, Version Metadata: $metadata"
done
shell: bash


- name: Write Changes
run: |
Expand Down

0 comments on commit c9efbed

Please sign in to comment.