Skip to content

Commit e030f31

Browse files
committed
ci(release-please): simplify bash_completion and configure.ac versioning
1 parent 7864377 commit e030f31

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.github/release-please-config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
"include-v-in-tag": false
88
}
99
},
10-
"pull-request-title-pattern": "chore: release${component} ${version}"
10+
"pull-request-title-pattern": "chore: release${component} ${version}",
11+
"extra-files": [
12+
"bash_completion",
13+
"configure.ac"
14+
]
1115
}

.github/workflows/ci.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ jobs:
5858
manifest-file: .github/release-please-manifest.json
5959
id: release
6060
if: github.event_name == 'push' && matrix.dist == 'alpine'
61-
- name: Do release preparations
62-
run: |
63-
version=$(cat version.txt)
64-
sed -i -re "s/^(BASH_COMPLETION_VERSINFO=).*/\\1(${version//./ })/" bash_completion
65-
sed -i -re "s/^(AC_INIT\(.*\[)[0-9.]+(\].*)/\\1$version\\2/" configure.ac
66-
git config user.name $(git log -1 --format=format:%an)
67-
git config user.email $(git log -1 --format=format:%ae)
68-
git commit --message="chore: bump release in dist files" bash_completion configure.ac
69-
git tag --force ${{steps.release.outputs.tag_name}}
70-
git push
71-
git push --tags --force
72-
if: steps.release.outputs.release_created
7361
# A "container" workflow config would be cleaner here, but comes with
7462
# some restrictions/oddities: changes root's $HOME to /github/home
7563
# without changing the actual home dir that can cause some problems,

bash_completion

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
#
2424
# https://github.com/scop/bash-completion
2525

26-
BASH_COMPLETION_VERSINFO=(2 11 0)
26+
BASH_COMPLETION_VERSINFO=(
27+
2 # x-release-please-major
28+
11 # x-release-please-minor
29+
0 # x-release-please-patch
30+
)
2731

2832
if [[ $- == *v* ]]; then
2933
_comp__init_original_set_v="-v"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AC_PREREQ([2.60])
2-
AC_INIT([bash-completion], [2.11.0])
2+
AC_INIT([bash-completion], [2.11.0]) dnl x-release-please-version
33
dnl tar-pax for portable UTF-8 handling
44
AM_INIT_AUTOMAKE([
55
foreign dist-xz no-dist-gzip tar-pax -Wall -Wno-portability -Werror

0 commit comments

Comments
 (0)