Skip to content
Snippets Groups Projects
Commit c3f57b75 authored by jordanbreen28's avatar jordanbreen28
Browse files

(CONT-930) - Update release prep template

parent d05508f2
No related branches found
No related tags found
No related merge requests found
...@@ -51,9 +51,9 @@ The following is a description and explanation of each of the keys within config ...@@ -51,9 +51,9 @@ The following is a description and explanation of each of the keys within config
These workflows are depending on puppet-internal resources and are currently not suited for public consumption. Feel free to take them as inspiration how to run some tests on Github Actions. Please let us know at <ia_content@puppet.com> what you come up with! These workflows are depending on puppet-internal resources and are currently not suited for public consumption. Feel free to take them as inspiration how to run some tests on Github Actions. Please let us know at <ia_content@puppet.com> what you come up with!
### .github/workflows/auto_release.yml ### .github/workflows/release_prep.yml
The auto release workflows uses the PDK experimental command `pdk release prep` to prepare a module release PR. By default the workflow can be triggered manually when a release preparation PR needs to be created, however it allows setting a cron based trigger that can run automatically. The auto release workflows prepares a module release PR. By default the workflow can be triggered manually when a release preparation PR needs to be created, however it allows setting a cron based trigger that can run automatically.
To set up the automated release cron you can add a configuration to your .sync.yml file that matches the following example: To set up the automated release cron you can add a configuration to your .sync.yml file that matches the following example:
```yaml ```yaml
release_schedule: release_schedule:
......
...@@ -558,11 +558,11 @@ spec/spec_helper.rb: ...@@ -558,11 +558,11 @@ spec/spec_helper.rb:
mock_with: ":rspec" mock_with: ":rspec"
strict_level: ":warning" strict_level: ":warning"
strict_variables: true strict_variables: true
.github/workflows/auto_release.yml:
unmanaged: true
.github/workflows/ci.yml: .github/workflows/ci.yml:
unmanaged: true unmanaged: true
.github/workflows/nightly.yml: .github/workflows/nightly.yml:
unmanaged: true unmanaged: true
.github/workflows/release.yml: .github/workflows/release.yml:
unmanaged: true unmanaged: true
.github/workflows/release_prep.yml:
unmanaged: true
<% common = config_for('common') -%> <% common = config_for('common') -%>
name: "Auto release" name: "Release Prep"
on: on:
<% if common['release_schedule'] -%> <% if common['release_schedule'] -%>
...@@ -7,8 +7,14 @@ on: ...@@ -7,8 +7,14 @@ on:
- cron: <%= common['release_schedule']['cron'] %> - cron: <%= common['release_schedule']['cron'] %>
<% end -%> <% end -%>
workflow_dispatch: workflow_dispatch:
inputs:
version:
description: "Module version to be released. Must be a valid semver string. (1.2.3)"
required: true
jobs: jobs:
release_prep: release_prep:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main" uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main"
with:
version: "${{ github.event.inputs.version }}"
secrets: "inherit" secrets: "inherit"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment