Skip to content

Commit dd235a5

Browse files
push added
Signed-off-by: Michée Lengronne <michee.lengronne@coppint.com>
1 parent 9897e99 commit dd235a5

2 files changed

Lines changed: 50 additions & 5 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Create Changelog
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
release:
8+
types: [published]
9+
10+
issues:
11+
types: [closed, edited]
12+
13+
jobs:
14+
generate_changelog:
15+
runs-on: ubuntu-latest
16+
name: Generate changelog for master branch
17+
steps:
18+
- uses: actions/checkout@v1
19+
20+
- name: Generate changelog
21+
uses: charmixer/auto-changelog-action@v1
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: push
26+
uses: github-actions-x/commit@v2.6
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
push-branch: 'master'
30+
commit-message: 'update changelog'
31+
force-add: 'true'
32+
files: CHANGELOG.md
33+
name: dev-sec CI
34+
email: github@gumpri.ch

.github/workflows/release.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ jobs:
2323
uses: charmixer/auto-changelog-action@8095796
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
27-
- name: update inspec.yml
28-
uses: mikefarah/yq@3.2.1
29-
with:
30-
cmd: yq w -I4 -i inspec.yml version ${{ steps.version.outputs.next-version }} && sed -i '1i---' inspec.yml
3126

3227
- name: Generate changelog
3328
uses: charmixer/auto-changelog-action@v1
@@ -36,6 +31,22 @@ jobs:
3631
since_tag: ${{ steps.previoustag.outputs.tag }}
3732
future_release: ${{ steps.version.outputs.next-version }}
3833

34+
- name: update inspec.yml
35+
uses: mikefarah/yq@3.2.1
36+
with:
37+
cmd: yq w -I4 -i inspec.yml version ${{ steps.version.outputs.next-version }} && sed -i '1i---' inspec.yml
38+
39+
- name: push inspec.yml
40+
uses: github-actions-x/commit@v2.6
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
push-branch: 'master'
44+
commit-message: 'update inspec.yml'
45+
force-add: 'true'
46+
files: inspec.yml
47+
name: dev-sec CI
48+
email: github@gumpri.ch
49+
3950
- name: Read CHANGELOG.md
4051
id: package
4152
uses: juliangruber/read-file-action@v1

0 commit comments

Comments
 (0)