Skip to content

Commit

Permalink
#1035: Github action to update ide-urls (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfeilex authored Apr 25, 2023
1 parent 2e0f975 commit 0fe4eaa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-urls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update URLS
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'

jobs:
updateURLS:
runs-on: ubuntu-latest
steps:
- name: Checkout ide
uses: actions/checkout@v3
- name: Checkout ide-urls
uses: actions/checkout@v3
with:
repository: devonfw/ide-urls
path: ide-urls
token: ${{ secrets.ACTION_PUSH_TOKEN }}
- name: Build and run url updater
run: |
cd url-updater
mvn install
mvn exec:java -Dexec.mainClass="com.devonfw.tools.ide.url.UpdateInitiator" -Dexec.args="../ide-urls"
- name: Commit and push to ide-urls
run: |
cd ide-urls
git add .
git config --global user.name ${{ secrets.BUILD_USER }}
git config --global user.email ${{ secrets.BUILD_USER_EMAIL }}
git commit -m "Update urls"
git push

0 comments on commit 0fe4eaa

Please sign in to comment.