Skip to content

Commit

Permalink
Add auto-updating CHANGELOG.md on develop branch
Browse files Browse the repository at this point in the history
* Using the matrix function of Github actions, both develop and main branches will be applied automatically.

Resolves fosslight#57

Signed-off-by: riyenas0925 <riyenas0925@gmail.com>
  • Loading branch information
riyenas0925 committed Aug 13, 2021
1 parent 82a1ac1 commit ab96fa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ on:
jobs:
update-changelog:
runs-on: ubuntu-latest
strategy:
matrix:
ref: [main, develop]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ matrix.ref }}
- name: update changelog with gren
env:
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -27,7 +32,7 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
branch: ${{ matrix.ref }}
build:
needs: update-changelog
runs-on: ubuntu-18.04
Expand Down

0 comments on commit ab96fa9

Please sign in to comment.