Skip to content

Commit

Permalink
push added
Browse files Browse the repository at this point in the history
Signed-off-by: Michée Lengronne <[email protected]>
  • Loading branch information
micheelengronne committed May 11, 2020
1 parent 9897e99 commit dd235a5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/changelog.yml
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]
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dd235a5

Please sign in to comment.