-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (34 loc) · 1001 Bytes
/
pull_request_closed.yml
File metadata and controls
39 lines (34 loc) · 1001 Bytes
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
name: "Pull Request Closed"
on:
pull_request:
types:
- closed
branches:
- develop
workflow_dispatch:
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Pull repo
uses: actions/checkout@v4
with:
ref: develop
fetch-depth: 0
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Bump version
run: ./.github/workflows/version_bumper.sh ./pyproject.toml
id: bump
- name: Commit and push
run: |
git config user.name "AVSlabBot"
git config user.email "cuavslab@gmail.com"
git commit -a -m "[AUTO] Bump minor version number"
git push
- name: Create tag
if: ${{ steps.bump.outputs.updated_version != '' }}
run: |
git tag -a "v${{ steps.bump.outputs.updated_version }}" \
-m "Release v${{ steps.bump.outputs.updated_version }}"
git push --tags