-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 914 Bytes
/
bumper.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
---
name: Bumper
on:
push:
branches:
- 'main'
env:
PYTHONUNBUFFERED: '1'
FORCE_COLOR: '1'
jobs:
bump:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
name: Create PR
steps:
- name: Checkout 🌩️
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pumper ⛽︎
run: pip install .
- name: Create PR 🥘
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pumper create --gh-env --assign --label bump
- name: Merge PR ✅
env:
GITHUB_TOKEN: ${{ secrets.PUMPER }}
run: |
pumper approve
pumper merge --method rebase