This pull request adds a new GitHub Actions workflow that checks for updates in the Open Data List provided by Inzai City. The workflow is scheduled to run on the first day of every month and can also be manually triggered.
Workflow Details:
Check for Updates in Open Data List
Scheduled to run on the 1st of every month
Manual trigger available
Job: check-updates
Runs on:ubuntu-latest
Steps:
Checkout repository
Uses actions/checkout@v4
Check if original file exists
Checks if the original Open Data List file (./original/122319_open_data_list.csv) exists in the repository.
Outputs original_exists=true if the file exists, otherwise outputs original_exists=false.
Download latest Open Data CSV file
Downloads the latest Open Data List file from the specified URL.
Outputs download_failed=true if the download fails.
Compare CSV files
Compares the downloaded CSV file with the original CSV file.
Outputs diff_exists=true if there are differences, otherwise outputs diff_exists=false.
Create Issue if updates are found
Creates a GitHub issue if differences are found in the Open Data List.
印西市が提供するオープンデータリストの更新をチェックする新しいGitHub Actionsワークフローを追加します。このワークフローは毎月1日にスケジュールされており、手動でもトリガーできます。
関連Issue
ワークフローの詳細:
ジョブ:
check-updates
ubuntu-latest
ステップ:
リポジトリをチェックアウト
actions/checkout@v4
を使用オリジナルファイルの存在を確認
./original/122319_open_data_list.csv
) が存在するか確認original_exists=true
を出力し、存在しない場合はoriginal_exists=false
を出力最新のオープンデータCSVファイルをダウンロード
download_failed=true
を出力CSVファイルを比較
diff_exists=true
を出力し、差分がない場合はdiff_exists=false
を出力更新が見つかった場合はIssueを作成
オリジナルファイルが存在しない場合はIssueを作成
ダウンロードに失敗した場合はIssueを作成
This pull request adds a new GitHub Actions workflow that checks for updates in the Open Data List provided by Inzai City. The workflow is scheduled to run on the first day of every month and can also be manually triggered.
Workflow Details:
Job:
check-updates
ubuntu-latest
Steps:
Checkout repository
actions/checkout@v4
Check if original file exists
./original/122319_open_data_list.csv
) exists in the repository.original_exists=true
if the file exists, otherwise outputsoriginal_exists=false
.Download latest Open Data CSV file
download_failed=true
if the download fails.Compare CSV files
diff_exists=true
if there are differences, otherwise outputsdiff_exists=false
.Create Issue if updates are found
Create Issue if original file does not exist
Create Issue if download failed