forked from macisamuele/language-formatters-pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.49 KB
/
bump-releases.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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()