Skip to content

Commit 594e07f

Browse files
committed
Fix shapefile step output in build map data workflow
1 parent da7c73c commit 594e07f

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/build-map-data.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
outputs:
2020
exit_code: ${{ steps.dl-shp.outputs.exit_code }}
21-
shp_year: ${{ steps.dl-shp.outputs.shp_year }}
22-
state_shp: ${{ steps.dl-shp.outputs.state_shp }}
23-
county_shp: ${{ steps.dl-shp.outputs.county_shp }}
21+
shp_year: ${{ steps.info.outputs.shp_year }}
22+
state_shp: ${{ steps.info.outputs.state_shp }}
23+
county_shp: ${{ steps.info.outputs.county_shp }}
2424

2525
steps:
2626
- name: Checkout
@@ -39,6 +39,10 @@ jobs:
3939
id: dl-shp
4040
run: |
4141
python data-raw/scripts/shapefiles.py ${{ inputs.year }}
42+
43+
- name: Save shapefile info
44+
id: info
45+
run: |
4246
echo "shp_year=${{ env.shp_year }}" >> "$GITHUB_OUTPUT"
4347
echo "state_shp=${{ env.state_shp }}" >> "$GITHUB_OUTPUT"
4448
echo "county_shp=${{ env.county_shp }}" >> "$GITHUB_OUTPUT"
@@ -55,8 +59,8 @@ jobs:
5559
needs: download
5660
if: needs.download.outputs.exit_code == '0'
5761
outputs:
58-
pr_url: ${{ steps.save-pr-info.outputs.pr_url }}
59-
pr_number: ${{ steps.save-pr-info.outputs.pr_number }}
62+
pr_url: ${{ steps.info.outputs.pr_url }}
63+
pr_number: ${{ steps.info.outputs.pr_number }}
6064

6165
steps:
6266
- name: Checkout
@@ -140,7 +144,7 @@ jobs:
140144
delete-branch: true
141145

142146
- name: Save PR info
143-
id: save-pr-info
147+
id: info
144148
run: |
145149
echo "pr_url=${{ steps.open-pr.outputs.pull-request-url }}" >> "$GITHUB_OUTPUT"
146150
echo "pr_number=${{ steps.open-pr.outputs.pull-request-number }}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)