Skip to content

Commit 83aed47

Browse files
authored
Merge pull request #1025 from bastelfreak/release3
Add workflows to create module git tags
2 parents 1561b14 + 65158f3 commit 83aed47

4 files changed

Lines changed: 34 additions & 1 deletion

File tree

config_defaults.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
delete: true
1313
.github/workflows/release_prep.yml:
1414
delete: true
15+
.github/workflows/prepare_release.yml:
16+
git_name: pccibot
17+
git_email: [email protected]
18+
.github/workflows/create_tag.yml:
19+
git_name: pccibot
20+
git_email: [email protected]
1521
.github/workflows/nightly.yml:
1622
delete: true
1723
.github/workflows/mend.yml:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# Managed by modulesync - DO NOT EDIT
3+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
5+
name: Create Git tag
6+
7+
on:
8+
workflow_dispatch:
9+
10+
permissions: {}
11+
12+
jobs:
13+
create_tag:
14+
uses: 'voxpupuli/gha-puppet/.github/workflows/create_tag.yml@v4'
15+
with:
16+
allowed_owner: '<%= @configs[:namespace] %>'
17+
git_name: '<%= @configs['git_name'] %>'
18+
git_email: '<%= @configs['git_email'] %>'
19+
secrets:
20+
# Configure secrets here:
21+
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
22+
ssh_private_key: ${{ secrets.PCCI_SSH_PRIVATE_KEY }}

moduleroot/.github/workflows/prepare_release.yml.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ jobs:
2323
<%- unless @configs['with']&.has_key?('allowed_owner') -%>
2424
allowed_owner: '<%= @configs['allowed_owner'] || @configs[:namespace] %>'
2525
<%- end -%>
26+
git_name: '<%= @configs['git_name'] %>'
27+
git_email: '<%= @configs['git_email'] %>'
2628
secrets:
2729
# Configure secrets here:
2830
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
2931
github_pat: '${{ secrets.PCCI_PAT_RELEASE_PREP }}'
32+
ssh_private_key: '${{ secrets.PCCI_SSH_PRIVATE_KEY }}'

moduleroot/.github/workflows/release.yml.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ name: Release
88
on:
99
push:
1010
tags:
11-
- '*'
11+
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onpushbranchestagsbranches-ignoretags-ignore
12+
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet
13+
- 'v[0-9]+.[0-9]+.[0-9]+'
1214

1315
permissions:
1416
contents: write

0 commit comments

Comments
 (0)