aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJosh Cooper <737664+joshcooper@users.noreply.github.com>2023-02-14 15:23:19 -0800
committerGitHub <noreply@github.com>2023-02-14 15:23:19 -0800
commitb720642cb692629eacc0224f93d046c1d75b4dbd (patch)
treea2ffbd8f1a9b4446f2237b17cb3ac14c4eeecd95 /Rakefile
parent7a7abeac98b31aebcf3ac0643ca422e247617a88 (diff)
parentf45d65c700bba6255a4d399843a972521722b7df (diff)
downloadpuppet-cron_core-b720642cb692629eacc0224f93d046c1d75b4dbd.tar.gz
puppet-cron_core-b720642cb692629eacc0224f93d046c1d75b4dbd.tar.bz2
Merge pull request #55 from mhashizume/MODULES-11371/main/puppet-8-prep
(MODULES-11371) Updates PDK template
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 2906c15..10ddd14 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,6 +7,7 @@ require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
+require 'voxpupuli/acceptance/rake'
def changelog_user
return unless Rake.application.top_level_tasks.include? "changelog"
@@ -43,6 +44,7 @@ end
PuppetLint.configuration.send('disable_relative')
+
if Bundler.rubygems.find_name('github_changelog_generator').any?
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
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?