10
10
11
11
name : Sync templates
12
12
on :
13
- workflow_dispatch :
13
+ workflow_dispatch : # Trigger manually
14
+ schedule :
15
+ - cron : " 0 0 1 * *" # Run at 00:00 on the first day of every month
14
16
15
17
# #########################
16
18
# Prevent duplicate jobs #
36
38
- name : Sync labels
37
39
38
40
with :
39
- config-file : https://raw .githubusercontent.com/geekcell/template-terraform-module/main/.github/ labels.yaml
41
+ config-file : https://gist .githubusercontent.com/Ic3w0lf/f5520c5f19d7098966f692c120f7a197/raw/75b134f76fbc55e2e64bd66f04e571d6d74b815e/terraform-aws-module- labels.yaml
40
42
41
43
# ######################
42
44
# Sync template files #
@@ -50,33 +52,12 @@ jobs:
50
52
# ###########################
51
53
- name : Checkout Code
52
54
53
- with :
54
- token : ${{ secrets.GEEKCELL_PAT_WORKFLOWS }}
55
-
56
- # #######################
57
- # Patch template files #
58
- # #######################
59
- - name : Force patching of template files
60
- run : |
61
- yes y | make setup/update-template
62
-
63
- # ###################
64
- # Update README.md #
65
- # ###################
66
- - name : Terraform docs
67
- uses :
terraform-docs/[email protected]
68
- with :
69
- config-file : .terraform-docs.yml
70
- git-push : false
71
55
72
- # ############
73
- # Create PR #
74
- # ############
75
- - name : Create PR
76
- uses :
peter-evans/[email protected]
56
+ # ######################
57
+ # Sync template files #
58
+ # ######################
59
+ - name : actions-template-sync
60
+ uses :
AndreasAugustin/[email protected]
77
61
with :
78
- token : ${{ secrets.GEEKCELL_PAT_WORKFLOWS }}
79
- title : Updated template files
80
- commit-message : Update template files from main repo
81
- branch : update-template-files
82
- delete-branch : true
62
+ github_token : ${{ secrets.GITHUB_TOKEN }}
63
+ source_repo_path : geekcell/terraform-aws-module-template
0 commit comments