-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1020 Bytes
/
on-version-bump.yml
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
name: Update Changelog & Version
on:
release:
types:
- published
- deleted
workflow_dispatch:
inputs:
skip_version:
type: choice
required: true
description: "Update version?"
default: 'yes'
options:
- yes
- no
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Generate FullChangelog.MD
run: python scripts/full_changelog.py
- name: Generate version
if: ${{ github.event_name != 'workflow_dispatch' || inputs.skip_version == 'true' || inputs.skip_version == true }}
run: python scripts/version.py
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: 'Docs Data'
message: 'chore(ci): update full changelog and version'
default_author: github_actions
push: true
new_branch: 'master'