1010
1111name : Sync templates
1212on :
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
1416
1517# #########################
1618# Prevent duplicate jobs #
3638 - name : Sync labels
3739 uses : EndBug/label-sync@v2.3.1
3840 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
4042
4143 # ######################
4244 # Sync template files #
@@ -50,33 +52,12 @@ jobs:
5052 # ###########################
5153 - name : Checkout Code
5254 uses : actions/checkout@v3.1.0
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/gh-actions@v1.0.0
68- with :
69- config-file : .terraform-docs.yml
70- git-push : false
7155
72- # ############
73- # Create PR #
74- # ############
75- - name : Create PR
76- uses : peter-evans/create-pull-request@v4.2.0
56+ # ######################
57+ # Sync template files #
58+ # ######################
59+ - name : actions-template-sync
60+ uses : AndreasAugustin/actions-template-sync@v0.7.3
7761 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