@@ -20,31 +20,31 @@ jobs:
20
20
- name : set date
21
21
id : set_date
22
22
run : |
23
- DATE_TWO_HOURS_AGO =$(date -d "2 hours ago" +%Y-%m-%d)
24
- echo "DATE_TWO_HOURS_AGO=$DATE_TWO_HOURS_AGO " >> $GITHUB_OUTPUT
23
+ DATE_TWO_DAYS_AGO =$(date -d "2 days ago" +%Y-%m-%d)
24
+ echo "DATE_TWO_DAYS_AGO=$DATE_TWO_DAYS_AGO " >> $GITHUB_OUTPUT
25
25
26
26
- name : set hour
27
27
id : set_hour
28
28
run : |
29
- HOUR_TWO_HOURS_AGO =$(date -d "2 hours ago" +%H)
30
- echo "HOUR_TWO_HOURS_AGO=$HOUR_TWO_HOURS_AGO " >> $GITHUB_OUTPUT
29
+ HOUR_TWO_DAYS_AGO =$(date -d "2 days ago" +%H)
30
+ echo "HOUR_TWO_DAYS_AGO=$HOUR_TWO_DAYS_AGO " >> $GITHUB_OUTPUT
31
31
32
32
- name : Check if the date and hour are set
33
33
run : cat $GITHUB_OUTPUT
34
34
35
- - name : process changesets for the hour ${{ steps.set_hour.outputs.HOUR_TWO_HOURS_AGO }}:00 on ${{ steps.set_date.outputs.DATE_TWO_HOURS_AGO }}
35
+ - name : process changesets for the hour ${{ steps.set_hour.outputs.HOUR_TWO_DAYS_AGO }}:00 on ${{ steps.set_date.outputs.DATE_TWO_DAYS_AGO }}
36
36
run : |
37
- docker run -v ./data:/tmp gradient-pipeline sh -c "node cli.js process-hour $DATE_TWO_HOURS_AGO $HOUR_TWO_HOURS_AGO "
37
+ docker run -v ./data:/tmp gradient-pipeline sh -c "node cli.js process-hour $DATE_TWO_DAYS_AGO $HOUR_TWO_DAYS_AGO "
38
38
env :
39
- DATE_TWO_HOURS_AGO : ${{ steps.set_date.outputs.DATE_TWO_HOURS_AGO }}
40
- HOUR_TWO_HOURS_AGO : ${{ steps.set_hour.outputs.HOUR_TWO_HOURS_AGO }}
39
+ DATE_TWO_DAYS_AGO : ${{ steps.set_date.outputs.DATE_TWO_DAYS_AGO }}
40
+ HOUR_TWO_DAYS_AGO : ${{ steps.set_hour.outputs.HOUR_TWO_DAYS_AGO }}
41
41
42
- - name : convert to fgb for the hour ${{ steps.set_hour.outputs.HOUR_TWO_HOURS_AGO }}:00 on ${{ steps.set_date.outputs.DATE_TWO_HOURS_AGO }}
42
+ - name : convert to fgb for the hour ${{ steps.set_hour.outputs.HOUR_TWO_DAYS_AGO }}:00 on ${{ steps.set_date.outputs.DATE_TWO_DAYS_AGO }}
43
43
run : |
44
- docker run -v ./data:/tmp gradient-pipeline sh -c "ogr2ogr -f FlatGeobuf /tmp/${DATE_TWO_HOURS_AGO }T${HOUR_TWO_HOURS_AGO }:00.fgb /tmp/${DATE_TWO_HOURS_AGO }T${HOUR_TWO_HOURS_AGO }:00.geojson -skipfailures"
44
+ docker run -v ./data:/tmp gradient-pipeline sh -c "ogr2ogr -f FlatGeobuf /tmp/${DATE_TWO_DAYS_AGO }T${HOUR_TWO_DAYS_AGO }:00.fgb /tmp/${DATE_TWO_DAYS_AGO }T${HOUR_TWO_DAYS_AGO }:00.geojson -skipfailures"
45
45
env :
46
- DATE_TWO_HOURS_AGO : ${{ steps.set_date.outputs.DATE_TWO_HOURS_AGO }}
47
- HOUR_TWO_HOURS_AGO : ${{ steps.set_hour.outputs.HOUR_TWO_HOURS_AGO }}
46
+ DATE_TWO_DAYS_AGO : ${{ steps.set_date.outputs.DATE_TWO_DAYS_AGO }}
47
+ HOUR_TWO_DAYS_AGO : ${{ steps.set_hour.outputs.HOUR_TWO_DAYS_AGO }}
48
48
49
49
- name : Check if the pipeline ran successfully
50
50
run : ls -lh ./data/*.fgb
0 commit comments