Update JRS snapshots #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update JRS snapshots | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 5 * * *' | |
jobs: | |
updateGWT28: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
cache: maven | |
- uses: s4u/[email protected] | |
with: | |
sonatypeSnapshots: true | |
apacheSnapshots: true | |
servers: | | |
[{ | |
"id": "ossrh", | |
"username": "${{ secrets.SONATYPE_USERNAME }}", | |
"password": "${{ secrets.SONATYPE_PASSWORD }}" | |
}] | |
- name: Update dependencies | |
run: mvn -B versions:resolve-ranges versions:update-properties -Dincludes=com.jresearchsoft*:*,org.jresearch*:* -DallowSnapshots --builder singlethreaded | |
working-directory: pom | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: gwt28/dep-update | |
commit-message: Update shapshot dependencies | |
token: ${{ secrets.PAT }} | |
updateGWT29: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'GWT29' | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
cache: maven | |
- uses: s4u/[email protected] | |
with: | |
sonatypeSnapshots: true | |
apacheSnapshots: true | |
servers: | | |
[{ | |
"id": "ossrh", | |
"username": "${{ secrets.SONATYPE_USERNAME }}", | |
"password": "${{ secrets.SONATYPE_PASSWORD }}" | |
}] | |
- name: Update dependencies | |
run: mvn -B versions:resolve-ranges versions:update-properties -Dincludes=com.jresearchsoft*:*,org.jresearch*:* -DallowSnapshots --builder singlethreaded | |
working-directory: pom | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: gwt29/dep-update | |
commit-message: Update shapshot dependencies | |
token: ${{ secrets.PAT }} |