-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9897e99
commit 2a16e7d
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Create Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
release: | ||
types: [published] | ||
|
||
issues: | ||
types: [closed, edited] | ||
|
||
jobs: | ||
generate_changelog: | ||
runs-on: ubuntu-latest | ||
name: Generate changelog for master branch | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Generate changelog | ||
uses: charmixer/auto-changelog-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: push | ||
uses: github-actions-x/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
push-branch: 'master' | ||
commit-message: 'update changelog' | ||
force-add: 'true' | ||
files: CHANGELOG.md | ||
name: dev-sec CI | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,6 @@ jobs: | |
uses: charmixer/auto-changelog-action@8095796 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: update inspec.yml | ||
uses: mikefarah/[email protected] | ||
with: | ||
cmd: yq w -I4 -i inspec.yml version ${{ steps.version.outputs.next-version }} && sed -i '1i---' inspec.yml | ||
|
||
- name: Generate changelog | ||
uses: charmixer/auto-changelog-action@v1 | ||
|
@@ -36,6 +31,22 @@ jobs: | |
since_tag: ${{ steps.previoustag.outputs.tag }} | ||
future_release: ${{ steps.version.outputs.next-version }} | ||
|
||
- name: update inspec.yml | ||
uses: mikefarah/[email protected] | ||
with: | ||
cmd: yq w -I4 -i inspec.yml version ${{ steps.version.outputs.next-version }} && sed -i '1i---' inspec.yml | ||
|
||
- name: push inspec.yml | ||
uses: github-actions-x/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
push-branch: 'master' | ||
commit-message: 'update inspec.yml' | ||
force-add: 'true' | ||
files: inspec.yml | ||
name: dev-sec CI | ||
email: [email protected] | ||
|
||
- name: Read CHANGELOG.md | ||
id: package | ||
uses: juliangruber/read-file-action@v1 | ||
|