@@ -32,13 +32,10 @@ This GitHub action will help you to keep track of the template changes.
32
32
* Ignore files and folders from syncing using a ` .templatesyncignore ` file
33
33
* many configuration options
34
34
* different lifecycle hooks are supported
35
+ * different git provider. Default is GitHub, GitLab is also tested. See [ .github/workflows/test_ssh_gitlab.yml] for an example.
35
36
36
37
## Usage
37
38
38
- ### Update
39
-
40
- starting with version v0.5.2-draft the ` templateversionrc ` file is not needed anymore. You can delete that file from the target repositories.
41
-
42
39
### Public template repository
43
40
44
41
Add this configuration to your github action
61
58
- name : Checkout
62
59
uses : actions/checkout@v3
63
60
- name : actions-template-sync
64
- uses :
AndreasAugustin/[email protected] .0 -draft
61
+ uses :
AndreasAugustin/[email protected] .1 -draft
65
62
with :
66
63
github_token : ${{ secrets.GITHUB_TOKEN }}
67
64
source_repo_path : <owner/repo>
94
91
private_key : ${{ secrets.PRIVATE_KEY }}
95
92
96
93
- name : actions-template-sync
97
- uses :
AndreasAugustin/[email protected] .0 -draft
94
+ uses :
AndreasAugustin/[email protected] .1 -draft
98
95
with :
99
96
github_token : ${{ steps.generate_token.outputs.token }}
100
97
source_repo_path : <owner/repo>
@@ -109,6 +106,7 @@ An example are [deployment keys][deployment-keys]. For our use case write permis
109
106
Within the repository where the GitHub action is enabled add a secret (e.q. ` SOURCE_REPO_SSH_PRIVATE_KEY`) with the content of your private SSH key.
110
107
Make sure that the read permissions of that secret fulfil your use case.
111
108
Set the optional `source_repo_ssh_private_key` input parameter.
109
+ It is also possible to use a different git provider, e.g. GitLab.
112
110
113
111
` ` ` yaml
114
112
jobs:
@@ -120,7 +118,7 @@ jobs:
120
118
- name: Checkout
121
119
uses: actions/checkout@v3
122
120
- name: actions-template-sync
123
- uses: AndreasAugustin/[email protected] .0 -draft
121
+ uses: AndreasAugustin/[email protected] .1 -draft
124
122
with:
125
123
github_token: ${{ secrets.GITHUB_TOKEN }}
126
124
source_repo_path: ${{ secrets.SOURCE_REPO_PATH }} # <owner/repo>, should be within secrets
@@ -144,6 +142,7 @@ jobs:
144
142
| hostname | `[optional]` the hostname of the repository | `false` | `github.com` |
145
143
| is_dry_run | `[optional]` set to `true` if you do not want to push the changes and not want to create a PR | `false` | |
146
144
| is_allow_hooks | `[optional]` set to `true` if you want to enable lifecycle hooks. Use this with caution! | `false` | `false` |
145
+ | is_not_source_github | `[optional]` set to `true` if the source git provider is not GitHub | `false` | `false` |
147
146
148
147
# ## Example
149
148
@@ -220,6 +219,10 @@ To ignore those, simply create a file in the root directory named `.templatesync
220
219
Open your project `Settings > Actions > General` and select the checkbox `Allow Github Actions to create and approve pull requests`
221
220
under the `Workflow permissions` section.
222
221
222
+ # # Release Updates
223
+
224
+ starting with version v0.5.2-draft the `templateversionrc` file is not needed anymore. You can delete that file from the target repositories.
225
+
223
226
# # Debug
224
227
225
228
You must create a secret named `ACTIONS_STEP_DEBUG` with the value `true` to see the debug messages set by this command in the log.
0 commit comments