RefreshVersions #28
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
# Worfklow for https://jmfayard.github.io/refreshVersions/ | |
name: RefreshVersions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 7 * * 1' | |
jobs: | |
"Refresh-Versions": | |
runs-on: "ubuntu-latest" | |
steps: | |
- id: step-0 | |
name: check-out | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
- id: step-1 | |
name: setup-java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- id: step-2 | |
name: create-branch | |
uses: peterjgrainger/[email protected] | |
with: | |
branch: refresh-versions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- id: step-3 | |
name: gradle refreshVersions | |
uses: gradle/[email protected] | |
with: | |
arguments: refreshVersions | |
- id: step-4 | |
name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: GitHub Actions | |
author_email: [email protected] | |
message: Refresh versions.properties | |
new_branch: refresh-versions | |
push: --force --set-upstream origin refresh-versions | |
- id: step-5 | |
name: Pull Request | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: refresh-versions | |
destination_branch: master | |
pr_title: Upgrade gradle dependencies | |
pr_body: '[refreshVersions](https://github.com/jmfayard/refreshVersions) has found those library updates!' | |
pr_draft: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |