Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: Changelog

on:
workflow_dispatch:
release:
types: [created]
push:
branches:
- master
Expand All @@ -13,21 +16,20 @@ jobs:
if: "!contains(github.event.head_commit.message, '[nodoc]')"
steps:
- uses: actions/checkout@master
- name: Set up Ruby 2.7
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler: none
ruby-version: 3.0
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-changelog-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
${{ runner.os }}-changelog-gem-
- name: Create local changes
run: |
gem install github_changelog_generator
github_changelog_generator -u Ruby-Starter-Kits -p Docker-Hanami-Generator --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
github_changelog_generator -u ${{ github.repository_owner }} -p ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
- name: Commit files
run: |
git config --local user.email "[email protected]"
Expand All @@ -37,3 +39,4 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
1 change: 1 addition & 0 deletions .github/workflows/update-template-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ jobs:
github_token: ${{ secrets.LOCAL_GIT_TOKEN }}
repository: 'Ruby-Starter-Kits/Docker-Hanami-Template'
directory: App
branch: ${{ github.ref }}