File tree Expand file tree Collapse file tree 6 files changed +24
-11
lines changed Expand file tree Collapse file tree 6 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 46
46
run : |
47
47
echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
48
48
49
- - name : " Commit changes "
49
+ - name : " Check if a release is necessary "
50
50
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' }}
51
57
run : |
52
58
git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
53
59
git config --local user.name "GitHub Action"
57
63
- name : Create Pull Request
58
64
id : cpr
59
65
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' }}
61
67
with :
62
68
token : ${{ secrets.GITHUB_TOKEN }}
63
69
commit-message : " Release prep v${{ steps.gv.outputs.ver }}"
73
79
labels : " maintenance"
74
80
75
81
- name : PR outputs
76
- if : ${{ github.repository_owner == 'puppetlabs' }}
82
+ if : ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
77
83
run : |
78
84
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
79
85
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Original file line number Diff line number Diff line change 51
51
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
52
52
echo STEP_START=$(date +%s) >> $GITHUB_ENV
53
53
54
+ - name : Run validation steps
55
+ run : |
56
+ bundle exec rake validate
57
+ if : ${{ github.repository_owner == 'puppetlabs' }}
58
+
54
59
- name : Setup Acceptance Test Matrix
55
60
id : get-matrix
56
61
run : |
Original file line number Diff line number Diff line change 55
55
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
56
56
echo STEP_START=$(date +%s) >> $GITHUB_ENV
57
57
58
+ - name : Run Static & Syntax Tests
59
+ if : ${{ github.repository_owner == 'puppetlabs' }}
60
+ run : |
61
+ buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
62
+
58
63
- name : Setup Spec Test Matrix
59
64
id : get-matrix
60
65
run : |
@@ -120,10 +125,6 @@ jobs:
120
125
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
121
126
echo ::endgroup::
122
127
123
- - name : Run Static & Syntax Tests
124
- run : |
125
- buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
126
-
127
128
- name : Run parallel_spec tests
128
129
run : |
129
130
buildevents cmd $TRACE_ID $STEP_ID 'rake parallel_spec Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake parallel_spec
Original file line number Diff line number Diff line change 5
5
include_todos : true
6
6
appveyor.yml :
7
7
delete : true
8
-
8
+ Rakefile :
9
+ changelog_max_issues : 500
9
10
Gemfile :
10
11
optional :
11
12
" :development " :
@@ -17,7 +18,6 @@ spec/spec_helper.rb:
17
18
unmanaged : false
18
19
.gitpod.yml :
19
20
unmanaged : false
20
-
21
21
.github/workflows/nightly.yml :
22
22
unmanaged : false
23
23
.github/workflows/pr_test.yml :
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
48
48
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake . application . top_level_tasks . include? "changelog" and ENV [ 'CHANGELOG_GITHUB_TOKEN' ] . nil?
49
49
config . user = "#{ changelog_user } "
50
50
config . project = "#{ changelog_project } "
51
+ config . max_issues = 500
51
52
config . future_release = "#{ changelog_future_release } "
52
53
config . exclude_labels = [ 'maintenance' ]
53
54
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 103
103
}
104
104
],
105
105
"description" : " Standard Library for Puppet Modules" ,
106
- "pdk-version" : " 2.1 .0" ,
106
+ "pdk-version" : " 2.2 .0" ,
107
107
"template-url" : " https://github.com/puppetlabs/pdk-templates#main" ,
108
- "template-ref" : " heads/main-0-g03daa92 "
108
+ "template-ref" : " heads/main-0-g51828b4 "
109
109
}
You can’t perform that action at this time.
0 commit comments