File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 4646 run : |
4747 echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
4848
49- - name : " Commit changes "
49+ - name : " Check if a release is necessary "
5050 if : ${{ github.repository_owner == 'puppetlabs' }}
51+ id : check
52+ run : |
53+ git diff --quiet CHANGELOG.md && echo "::set-output name=release::false" || echo "::set-output name=release::true"
54+
55+ - name : " Commit changes"
56+ if : ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
5157 run : |
5258 git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
5359 git config --local user.name "GitHub Action"
5763 - name : Create Pull Request
5864 id : cpr
5965 uses : puppetlabs/peter-evans-create-pull-request@v3
60- if : ${{ github.repository_owner == 'puppetlabs' }}
66+ if : ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
6167 with :
6268 token : ${{ secrets.GITHUB_TOKEN }}
6369 commit-message : " Release prep v${{ steps.gv.outputs.ver }}"
7379 labels : " maintenance"
7480
7581 - name : PR outputs
76- if : ${{ github.repository_owner == 'puppetlabs' }}
82+ if : ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
7783 run : |
7884 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
7985 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Original file line number Diff line number Diff line change 88 optional :
99 " :development " :
1010 - gem : github_changelog_generator
11+ Rakefile :
12+ changelog_max_issues : 500
1113spec/spec_helper.rb :
1214 mock_with : " :rspec"
1315 coverage_report : true
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
4949 config . user = "#{ changelog_user } "
5050 config . project = "#{ changelog_project } "
5151 config . since_tag = "v8.0.0"
52+ config . max_issues = 500
5253 config . future_release = "#{ changelog_future_release } "
5354 config . exclude_labels = [ 'maintenance' ]
5455 config . header = "# Change log\n \n All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
Original file line number Diff line number Diff line change 3939 }
4040 ],
4141 "template-url" : " https://github.com/puppetlabs/pdk-templates.git#main" ,
42- "template-ref" : " heads/main-0-g2381db6 " ,
43- "pdk-version" : " 2.1 .0"
42+ "template-ref" : " heads/main-0-g51828b4 " ,
43+ "pdk-version" : " 2.2 .0"
4444}
You can’t perform that action at this time.
0 commit comments