Skip to content

Commit 9f9b838

Browse files
authored
Merge pull request #31 from danielparks/pdk-update
PDK update: release.rb --no-acceptance
2 parents 1f9c84f + af7a98a commit 9f9b838

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44

55
## main branch
66

7+
No functional changes. This release is solely to keep the released module from
8+
getting too far out of sync with git after multiple `pdk update`s.
9+
710
## Release 1.2.2
811

912
### Bug fixes

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@
8585
],
8686
"pdk-version": "2.7.0",
8787
"template-url": "https://github.com/danielparks/pdk-templates#main",
88-
"template-ref": "heads/main-0-gce583f5"
88+
"template-ref": "heads/main-0-g98cb58a"
8989
}

release.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def usage
2222
--dry-run don’t commit or publish any changes
2323
--just-forge-update just update files as if we were going to build a
2424
package to upload to the Forge
25+
--no-acceptance skip acceptance tests
2526
2627
./release.rb --help
2728
@@ -41,11 +42,13 @@ def usage_error(message)
4142
[ '--dry-run', '-n', GetoptLong::NO_ARGUMENT ],
4243
[ '--forge-token', '-t', GetoptLong::REQUIRED_ARGUMENT ],
4344
[ '--just-forge-update', GetoptLong::NO_ARGUMENT ],
45+
[ '--no-acceptance', GetoptLong::NO_ARGUMENT ],
4446
)
4547

4648
forge_token = ENV['PDK_FORGE_TOKEN']
4749
dry_run = false
4850
just_forge_update = false
51+
run_acceptance = true
4952

5053
opts.each do |opt, arg|
5154
case opt
@@ -58,6 +61,8 @@ def usage_error(message)
5861
dry_run = true
5962
when '--just-forge-update'
6063
just_forge_update = true
64+
when '--no-acceptance'
65+
run_acceptance = false
6166
end
6267
end
6368

@@ -256,7 +261,7 @@ def confirm_no_changes
256261
run('pdk', 'validate')
257262
run('pdk', 'test', 'unit')
258263

259-
if File.exist?('spec/acceptance')
264+
if run_acceptance && File.exist?('spec/acceptance')
260265
run('./test.sh', 'init', 'run', 'destroy')
261266
end
262267

0 commit comments

Comments
 (0)