-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(CONT-930) - Update release prep template
- Loading branch information
1 parent
d05508f
commit c3f57b7
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> 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: | ||
```yaml | ||
release_schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
...ot/.github/workflows/auto_release.yml.erb → ...ot/.github/workflows/release_prep.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<% common = config_for('common') -%> | ||
name: "Auto release" | ||
name: "Release Prep" | ||
|
||
on: | ||
<% if common['release_schedule'] -%> | ||
schedule: | ||
- cron: <%= common['release_schedule']['cron'] %> | ||
<% end -%> | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Module version to be released. Must be a valid semver string. (1.2.3)" | ||
required: true | ||
|
||
jobs: | ||
release_prep: | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main" | ||
with: | ||
version: "${{ github.event.inputs.version }}" | ||
secrets: "inherit" |