diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 1ed116e..04e6b3e 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -2,6 +2,9 @@ name: Changelog on: + workflow_dispatch: + release: + types: [created] push: branches: - master @@ -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 "github-actions@example.com" @@ -37,3 +39,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} diff --git a/.github/workflows/update-template-repo.yml b/.github/workflows/update-template-repo.yml index 857a970..d02ed99 100644 --- a/.github/workflows/update-template-repo.yml +++ b/.github/workflows/update-template-repo.yml @@ -87,3 +87,4 @@ jobs: github_token: ${{ secrets.LOCAL_GIT_TOKEN }} repository: 'Ruby-Starter-Kits/Docker-Hanami-Template' directory: App + branch: ${{ github.ref }}