Created
October 13, 2021 01:27
-
-
Save maxirosson/ecd3ef9eb4763b51cd47cd13877cee07 to your computer and use it in GitHub Desktop.
.github/workflows/releases_hub.yml
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: "Upgrade Dependencies" | |
on: | |
schedule: | |
- cron: "0 13 * * 3" | |
workflow_dispatch: | |
inputs: | |
pullRequestsMax: | |
description: 'The maximum amount of pull requests to create during the action execution.' | |
required: true | |
default: '5' | |
includes: | |
description: 'The dependencies to include. You can define a groupId to match all the artifacts for that group id, or groupId:artifactId to match a particular artifact. ' | |
required: false | |
default: '' | |
jobs: | |
upgradeDependencies: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# https://github.com/actions/setup-java | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
- run: ./gradlew upgradeDependencies -PgitHubRepositoryName=${GITHUB_REPOSITORY#*/} -PpullRequestsMax=${{ github.event.inputs.pullRequestsMax || '5' }} -Pincludes=${{ github.event.inputs.includes || '' }} --stacktrace | |
env: | |
gitHubWriteToken: ${{ secrets.gitHubWriteToken }} | |
gitUserEmail: ${{ secrets.gitUserEmail }} | |
gitUserName: ${{ secrets.gitUserName }} | |
gitHubRepositoryOwner: ${{ github.repository_owner }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment