Skip to content

Commit 6010b41

Browse files
committed
right order of tmp creation and updating env var
1 parent eae749a commit 6010b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/dbip_download.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
mkdir -p dbip-data
3232
curl -L -o dbip-data/dbip-country-lite.mmdb.gz "https://download.db-ip.com/free/dbip-country-lite-$YEAR_MONTH.mmdb.gz"
3333
gunzip dbip-data/dbip-country-lite.mmdb.gz
34+
echo "TEMP_DIR=$(mktemp -d)" >> $GITHUB_ENV
3435
if [ "$?" -ne "0" ]; then
3536
echo "SKIP_EXPORT=true" >> $GITHUB_ENV
3637
fi
@@ -39,7 +40,6 @@ jobs:
3940
if: ${{ env.SKIP_EXPORT == 'false' }}
4041
run: |
4142
set -xv
42-
echo "TEMP_DIR=$(mktemp -d)" >> $GITHUB_ENV
4343
echo $TEMP_DIR
4444
pwd
4545
cd ip_country

0 commit comments

Comments
 (0)