Skip to content

update_csv2notion-neo_binary #10

update_csv2notion-neo_binary

update_csv2notion-neo_binary #10

name: update_csv2notion-neo_binary
on:
workflow_dispatch:
jobs:
update_binary:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get latest release info
id: get_release
run: |
latest_release_tag=$(curl -sSL https://api.github.com/repos/TheAcharya/csv2notion-neo/releases/latest | jq -r '.tag_name | ltrimstr("v")')
latest_release_url=$(curl -sSL https://api.github.com/repos/TheAcharya/csv2notion-neo/releases/latest | jq -r '.assets[] | select(.name | endswith("macos_arm64.zip")) | .browser_download_url')
echo "Latest release tag: $latest_release_tag"
echo "Latest release URL: $latest_release_url"
curl -L -o csv2notion-neo.zip $latest_release_url
unzip csv2notion-neo.zip -d extracted_files
cp -R ./extracted_files/dist/csv2notion_neo "./Source/Marker Data/Marker Data/Resources"
git status
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add Source
git commit -m "Updated CSV2Notion Neo Binary Version $latest_release_tag"
git push