Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rxchi1d committed Feb 1, 2025
1 parent 96a162d commit 1e6fba5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/auto-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@ jobs:
- name: Set current date as env variable
run: echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Build
env: # Or as an environment variable
AMAP_API_KEY: ${{ secrets.AMAP_API_KEY }}
LOCATIONIQ_API_KEY: ${{ secrets.LOCATIONIQ_API_KEY }}
run: bash release.sh
run: python main.py release --locationiq-api-key "${{ secrets.LOCATIONIQ_API_KEY }}" --country-code "TW" "JP"
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: Auto Release ${{ env.TODAY }}
artifacts: "output/*"
body: 这是定期自动生成的 Release,如果发现问题请提 issue 并暂时选择到 [此处](https://github.com/ZingLix/immich-geodata-cn/releases) 选择手动发布的 Release 文件。如果遇到 Immich 没有更新数据,请手动修改 geodata-date.txt 文件,将其内容中的时间修改为更新的时间(比如当前时间)。
artifacts: "output/release.zip"
body: 這是定期自動生成的 Release,如果發現問題請提 issue 並暫時選擇到 [此處](https://github.com/ZingLix/immich-geodata-tw/releases) 選擇手動發布的 Release 文件。如果遇到 Immich 沒有更新數據,請手動修改 geodata-date.txt 文件,將其內容中的時間修改為更新的時間(比如當前時間)。
draft: false
generateReleaseNotes: false
commit: main
Expand All @@ -51,4 +48,4 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto update reverse geocoding data on ${{ env.TODAY }}
file_pattern: geodata/data/*
file_pattern: meta_data/*
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,17 @@ jobs:
- name: Set current date as env variable
run: echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Build
env: # Or as an environment variable
AMAP_API_KEY: ${{ secrets.AMAP_API_KEY }}
LOCATIONIQ_API_KEY: ${{ secrets.LOCATIONIQ_API_KEY }}
run: bash release.sh
run: python main.py release --locationiq-api-key "${{ secrets.LOCATIONIQ_API_KEY }}" --country-code "TW" "JP"
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: Release ${{ env.TODAY }}
artifacts: "output/*"
artifacts: "output/release.zip"
draft: false
generateReleaseNotes: false
commit: main
tag: release-${{ env.TODAY }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto update reverse geocoding data on ${{ env.TODAY }}
file_pattern: geodata/data/*
file_pattern: meta_data/*

0 comments on commit 1e6fba5

Please sign in to comment.