Bump External Releases #1
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: Bump External Releases | |
on: | |
schedule: | |
- cron: 0 0 * * * # every day at midnight | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hmarr/debug-action@v2 | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Configure git configs | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Samuele Maci (bot)" | |
- name: Install Python dependencies | |
run: pip install pre-commit | |
- name: Bump External Releases (tool) | |
run: | | |
python .github/workflows/bump_external_releases.py | |
echo "::set-env GIT_SHA=$(git rev-parse HEAD)" | |
- name: Create Pull Request | |
id: cpr | |
if: ${{ env.GIT_SHA != github.sha }} | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.REPO_TOKEN }} | |
title: '[Automated PR] Bump KTLint and/or Google Java Formatter' | |
body: | | |
Bump KTLint and/or Google Java Formatter | |
*Auto-generated* by [bump-releases](https://github.com/macisamuele/language-formatters-pre-commit-hooks/actions/workflows/bump-releases.yaml) | |
reviewers: cortinico,macisamuele | |
branch: create-pull-request/bump-releases | |
delete-branch: true | |
draft: false | |
- name: Provide PR details | |
run: echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" | |
if: success() |