Skip to content

Commit

Permalink
Force ID and Name as string during conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshannon committed Oct 15, 2024
1 parent 49e95c0 commit 76d938e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ jobs:
- name: Create airports.json
run: |
yq airports.yaml > /dev/null
yq -o=json -I=0 airports.yaml > airports.json
yq -o=json -I=0 '[.[] | .ID = (.ID | tostring) | .Name = (.Name | tostring)]' airports.yaml > airports.json
- name: Create navaids.json
run: |
yq navaids.yaml > /dev/null
yq -o=json -I=0 navaids.yaml > navaids.json
yq -o=json -I=0 '[.[] | .ID = (.ID | tostring) | .Name = (.Name | tostring)]' navaids.yaml > navaids.json
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: navdata
path: |
airports.json
navaids.json
- name: Create release
if: github.ref_type == 'tag' && contains(github.ref_name, 'v')
Expand Down

0 comments on commit 76d938e

Please sign in to comment.