Add generation of announcements tables (#1355)

* Parse announcements from issues

* Minor fix

* Minor fix

* Reworked

* Minor fix

* Fix env variable name
This commit is contained in:
Vladimir Safonkin
2020-08-06 15:12:04 +03:00
committed by GitHub
parent 0f6fba462a
commit 75ac0436ed
7 changed files with 31 additions and 40 deletions

View File

@@ -31,7 +31,8 @@
"capture_name_prefix": "packer",
"image_version": "dev",
"image_os": "win16",
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}"
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
"announcements": "{{env `ANNOUNCEMENTS`}}"
},
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
"builders": [
@@ -84,11 +85,6 @@
"source": "{{ template_dir }}/scripts/SoftwareReport",
"destination": "{{user `image_folder`}}"
},
{
"type": "file",
"source": "{{ template_dir }}/announcements.md",
"destination": "{{user `image_folder`}}/SoftwareReport/announcements.md"
},
{
"type": "file",
"source": "{{ template_dir }}/scripts/Tests",
@@ -667,7 +663,8 @@
"pwsh -File '{{user `image_folder`}}\\SoftwareReport\\SoftwareReport.Generator.ps1'"
],
"environment_vars":[
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}",
"ANNOUNCEMENTS={{user `announcements`}}"
]
},
{