Skip to content
Snippets Groups Projects
Unverified Commit 0634b9e4 authored by Paula Muir's avatar Paula Muir Committed by GitHub
Browse files

Merge pull request #438 from carabasdaniel/autoreleaseimprovement

Allow auto_release workflow schedule configuration
parents dd6e2370 4f567fc0
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,16 @@ If you are using Gitpod you will need to opt-in and enable gitpod support for pd
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
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.
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:
cron: '0 3 * * 6'
```
In this example the automated release prep workflow is triggered every Saturday at 3 am.
### .pdkignore
>A .pdkignore file in your repo allows you to specify files to ignore when building a module package with `pdk build`.
......
......@@ -2,8 +2,10 @@
name: "Auto release"
on:
<% if common['release_schedule'] -%>
schedule:
- cron: '0 3 * * 6'
- cron: <%= common['release_schedule']['cron'] %>
<% end -%>
workflow_dispatch:
env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment