Skip to content

Commit be3e316

Browse files
authored
Setting branch reference when pushing (#7)
1 parent a820d70 commit be3e316

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/changelog.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name: Changelog
33

44
on:
5+
workflow_dispatch:
6+
release:
7+
types: [created]
58
push:
69
branches:
710
- master
@@ -13,21 +16,20 @@ jobs:
1316
if: "!contains(github.event.head_commit.message, '[nodoc]')"
1417
steps:
1518
- uses: actions/checkout@master
16-
- name: Set up Ruby 2.7
19+
- name: Set up Ruby 3.0
1720
uses: ruby/setup-ruby@v1
1821
with:
19-
ruby-version: 2.7.2
20-
bundler: none
22+
ruby-version: 3.0
2123
- uses: actions/cache@v2
2224
with:
2325
path: vendor/bundle
24-
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
26+
key: ${{ runner.os }}-changelog-gem-${{ hashFiles('**/Gemfile.lock') }}
2527
restore-keys: |
26-
${{ runner.os }}-gem-
28+
${{ runner.os }}-changelog-gem-
2729
- name: Create local changes
2830
run: |
2931
gem install github_changelog_generator
30-
github_changelog_generator -u Ruby-Starter-Kits -p Docker-Hanami-Generator --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
32+
github_changelog_generator -u ${{ github.repository_owner }} -p ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
3133
- name: Commit files
3234
run: |
3335
git config --local user.email "[email protected]"
@@ -37,3 +39,4 @@ jobs:
3739
uses: ad-m/github-push-action@master
3840
with:
3941
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
branch: ${{ github.ref }}

.github/workflows/update-template-repo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ jobs:
8787
github_token: ${{ secrets.LOCAL_GIT_TOKEN }}
8888
repository: 'Ruby-Starter-Kits/Docker-Hanami-Template'
8989
directory: App
90+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)