@@ -9,14 +9,12 @@ You can find all possible template workflows in the directory `.github/workflows
99``` yml
1010name : <your name>
1111
12- on :
13- ...
12+ on : ...
1413
1514jobs :
1615 <action name> :
1716 uses : Staffbase/gha-workflows/.github/workflows/template_*.yml@v9.0.0
18- with :
19- ...
17+ with : ...
2018` ` `
2119
2220## Example Configurations 🔧
@@ -193,7 +191,7 @@ jobs:
193191 # optional: name of the branch where it should check, default: main
194192 branch : ' master'
195193 # optional: file path suffixes (comma seperated) to filter the test files
196- path-suffixes : " .spec.ts,.spec.tsx,.test.ts,.test.tsx"
194+ path-suffixes : ' .spec.ts,.spec.tsx,.test.ts,.test.tsx'
197195 # prefix of the test run which should be filtered out
198196 prefix : ' test-'
199197 secrets :
@@ -212,21 +210,21 @@ jobs:
212210
213211` ` ` yml
214212name : GitOps
215- on : [ push ]
213+ on : [push]
216214
217215jobs :
218216 gitops :
219217 uses : Staffbase/gha-workflows/.github/workflows/template_gitops.yml@v9.0.0
220218 with :
221219 # optional: host of the docker registry, default: "registry.staffbase.com"
222- docker-registry : " <your-registry>"
220+ docker-registry : ' <your-registry>'
223221 # optional: list of build-time variables
224222 docker-build-args : |
225223 "any important args"
226224 # optional: set the target stage to build
227- docker-build-target : " any target"
225+ docker-build-target : ' any target'
228226 # optional: set the provenance level of the docker build, default: "false"
229- docker-build-provenance : " <your-provenance-level>"
227+ docker-build-provenance : ' <your-provenance-level>'
230228 # optional: should the last stage image be retagged for the release image, default: false
231229 docker-disable-retagging : true
232230 # optional: path to the Dockerfile, default: ./Dockerfile
@@ -238,11 +236,11 @@ jobs:
238236 # optional: organization of the gitops repository, default: github.repository_owner
239237 gitops-organization : <your-organization>
240238 # optional: repository where to update the files, default: mops
241- gitops-repository : " <your-repository>"
239+ gitops-repository : ' <your-repository>'
242240 # optional: user which does the commit, default: "staffbase-actions"
243- gitops-user : " <your-user>"
241+ gitops-user : ' <your-user>'
244242 # optional: email of the user which does the commit, default: "staffbase-actions[bot]@users.noreply.github.com"
245- gitops-email : " <your-email>"
243+ gitops-email : ' <your-email>'
246244 # optional: files which should be updated for dev
247245 gitops-dev : |-
248246 your files
@@ -432,6 +430,10 @@ jobs:
432430 new_version:
433431 uses: Staffbase/gha-workflows/.github/workflows/template_release_version.yml@v9.0.0
434432 with:
433+ # optional: prefix of the tag in order to find the last release; this is useful for multi artifact/service repositories, default: 'v'
434+ tag-prefix: 'app-v'
435+ # optional: suffix of the tag in order to find the last release; this is useful for multi artifact/service repositories, default: '' (empty string)
436+ tag-suffix: '-native'
435437 # optional: format of the version, default: weekly
436438 format: 'quarterly'
437439` ` `
@@ -476,7 +478,7 @@ name: Stale PRs
476478
477479on:
478480 schedule:
479- - cron: " 0 0 * * 1-5"
481+ - cron: ' 0 0 * * 1-5'
480482
481483jobs:
482484 stale:
511513 branches:
512514 - 'main'
513515 paths:
514- - " docs/**"
515- - " mkdocs.yml"
516- - " .github/workflows/techdocs.yaml"
516+ - ' docs/**'
517+ - ' mkdocs.yml'
518+ - ' .github/workflows/techdocs.yaml'
517519
518520jobs:
519521 techdocs:
540542 branches:
541543 - 'main'
542544 paths:
543- - " docs/**"
544- - " mkdocs.yml"
545- - " .github/workflows/techdocs.yaml"
545+ - ' docs/**'
546+ - ' mkdocs.yml'
547+ - ' .github/workflows/techdocs.yaml'
546548
547549jobs:
548550 techdocs:
0 commit comments