Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/update-urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Release with new features and bugfixes:
* https://github.com/devonfw/IDEasy/issues/1719[#1719]: Add Rust and MSVC support
* https://github.com/devonfw/IDEasy/issues/1991[#1991]: Improve WindowsHelperMock
* https://github.com/devonfw/IDEasy/issues/1457[#1457]: Improve CLI error messages on invalid args or commandlets not available in current context
* 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].

Expand Down
Loading