Skip to content

Commit a29ea9c

Browse files
committed
fix(ci): force recreate nightly release to fix date ordering
- Add step to delete existing nightly release before creating new one - Ensures release date displays correctly as execution date instead of original creation date - Prevents nightly releases from appearing at bottom of release list
1 parent f26353e commit a29ea9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/auto-update.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
run: echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
3434
- name: Build
3535
run: python main.py release --locationiq-api-key "${{ secrets.LOCATIONIQ_API_KEY }}" --country-code "JP" "KR" "TH"
36+
- name: Delete existing nightly release
37+
run: |
38+
gh release delete nightly --yes || true
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3641
- name: Create Release
3742
uses: ncipollo/release-action@v1
3843
with:
@@ -51,4 +56,4 @@ jobs:
5156
- uses: stefanzweifel/git-auto-commit-action@v5
5257
with:
5358
commit_message: Auto update reverse geocoding data on ${{ env.TODAY }}
54-
file_pattern: meta_data/*
59+
file_pattern: meta_data/*

0 commit comments

Comments
 (0)