get geojson #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: get BTCMAP rank | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| genRank: | |
| environment: | |
| name: ${{ github.ref_name }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Get BTC MAP Rank1 | |
| id: getRank | |
| run: npm install -g mapshaper && curl "https://nominatim.openstreetmap.org/lookup?osm_ids=R7477259&format=json&polygon_geojson=" | jq '.[0].geojson' > input.json && mapshaper input.json -simplify 10% -o output.json && cat output.json | jq '.geometries[0]' | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: output geojson | |
| path: output.json | |