Skip to content

Commit

Permalink
[devtools] sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dry-bot committed Jan 3, 2021
1 parent a41aac2 commit b0bac69
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .devtools/templates/release.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->

<% if latest_release.summary %>
<%= latest_release.summary %>

<% end %>

<% if latest_release.added? %>
### Added

<% latest_release.added.each do |log| %>
- <%= log %>
<% end %>

<% end %>
<% if latest_release.fixed? %>
### Fixed

<% latest_release.fixed.each do |log| %>
- <%= log %>
<% end %>

<% end %>
<% if latest_release.changed? %>
### Changed

<% latest_release.changed.each do |log| %>
- <%= log %>
<% end %>
<% end %>
<% if previous_release %>
<% ver_range = "v#{previous_release.version}...v#{latest_release.version}" %>

[Compare <%=ver_range%>](https://github.com/dry-rb/<%= project.name %>/compare/<%=ver_range%>)
<% end %>
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ jobs:
- name: Trigger release workflow
run: |
tag=$(echo $GITHUB_REF | cut -d / -f 3)
ossy gh w dry-rb/devtools release --payload "{\"tag\":\"$tag\",\"tag_creator\":\"$GITHUB_ACTOR\",\"repo\":\"$GITHUB_REPOSITORY\"}"
ossy gh w dry-rb/devtools release --payload "{\"tag\":\"$tag\",\"sha\":\"${{github.sha}}\",\"tag_creator\":\"$GITHUB_ACTOR\",\"repo\":\"$GITHUB_REPOSITORY\",\"repo_name\":\"${{github.event.repository.name}}\"}"

0 comments on commit b0bac69

Please sign in to comment.