diff --git a/.github/workflows/update-urls.yml b/.github/workflows/update-urls.yml index df34230c0..2f192886d 100644 --- a/.github/workflows/update-urls.yml +++ b/.github/workflows/update-urls.yml @@ -17,6 +17,12 @@ jobs: repository: devonfw/ide-urls path: ide-urls token: ${{ secrets.ACTION_PUSH_TOKEN }} + - name: Checkout ide-urls-status + uses: actions/checkout@v3 + with: + repository: devonfw/ide-urls-status + path: ide-urls-status + token: ${{ secrets.ACTION_PUSH_TOKEN }} - name: Set up Java uses: actions/setup-java@v3 with: @@ -29,14 +35,36 @@ jobs: mvn -B -ntp -Dstyle.color=always -pl url-updater exec:java -Dexec.mainClass="com.devonfw.tools.ide.url.UpdateInitiator" -Dexec.args="ide-urls PT5H30M" env: GHA_TOKEN: ${{ secrets.GHA_TOKEN }} + - name: Sync status.json files to ide-urls-status + run: | + rsync -av --delete --prune-empty-dirs \ + --exclude='.git/' \ + --include='*/' \ + --include='status.json' \ + --exclude='*' \ + ide-urls/ ide-urls-status/ + - name: Commit and push status.json files to ide-urls-status + run: | + cd ide-urls-status + git config --global user.name ${{ secrets.BUILD_USER }} + git config --global user.email ${{ secrets.BUILD_USER_EMAIL }} + git add -A + if ! git diff --cached --quiet; then + git commit -m "Update status.json" + git push + else + echo "No status.json changes" + fi - name: Commit and push to ide-urls run: | cd ide-urls git config --global user.name ${{ secrets.BUILD_USER }} git config --global user.email ${{ secrets.BUILD_USER_EMAIL }} - if git status -z | grep -q . - then - git add . + CHANGED_NON_STATUS_FILES=$(git ls-files --modified --others --exclude-standard | grep -Ev '(^|/)status\.json$' || true) + if [ -n "$CHANGED_NON_STATUS_FILES" ]; then + while IFS= read -r file; do + [ -n "$file" ] && git add "$file" + done <<< "$CHANGED_NON_STATUS_FILES" git commit -m "Update urls" git push else diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 53a168492..854b7e129 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -7,7 +7,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE Release with new features and bugfixes: * https://github.com/devonfw/IDEasy/issues/1846[#1846]: Fixed macOS Gatekeeper workaround -* https://github.com/devonfw/IDEasy/issues/1906[#1906]: Fixed `ide uninstall` failing on macOS +* https://github.com/devonfw/IDEasy/issues/1906[#1906]: Fixed `ide uninstall` failing on macOS * https://github.com/devonfw/IDEasy/issues/1985[#1985]: Fix path traversal errors when extracting ZIPs on Windows * https://github.com/devonfw/IDEasy/issues/1255[#1255]: Enhance snapshot version recognition in IDEasy * https://github.com/devonfw/IDEasy/issues/1964[#1964]: Fixed gui not launching with older project java versions @@ -15,6 +15,7 @@ Release with new features and bugfixes: * https://github.com/devonfw/IDEasy/issues/1849[#1849]: Add VSCodium support * https://github.com/devonfw/IDEasy/issues/1391[#1391]: Fix bashrc messed with terraform completions * https://github.com/devonfw/IDEasy/issues/1922[#1922]: Add Task CLI to IDEasy commandlets +* https://github.com/devonfw/IDEasy/issues/1651[#1651]: Move status.json files out of ide-urls to ide-urls-status The full list of changes for this release can be found in https://github.com/devonfw/IDEasy/milestone/45?closed=1[milestone 2026.06.001].