Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1035: Github action to update ide-urls #1059

Merged
merged 13 commits into from
Apr 25, 2023
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 }}
hohwille marked this conversation as resolved.
Show resolved Hide resolved
- 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
hohwille marked this conversation as resolved.
Show resolved Hide resolved