Skip to content

Commit 9c3571f

Browse files
authored
feat: generate proper git tag
1 parent 0141d9b commit 9c3571f

2 files changed

Lines changed: 20 additions & 24 deletions

File tree

.github/workflows/v4-tests-and-release.yml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: "[v4] Test and Release"
1+
name: '[v4] Test and Release'
22
on: [push, pull_request]
33
jobs:
44
check-v3compatibility:
5-
name: "Check v3 compatibility"
5+
name: 'Check v3 compatibility'
66
strategy:
77
fail-fast: false
88
matrix:
@@ -84,7 +84,7 @@ jobs:
8484
shell: bash
8585

8686
check-v3compatibility-without-checkout:
87-
name: "Check v3 compatibility (without checkout)"
87+
name: 'Check v3 compatibility (without checkout)'
8888
needs:
8989
- check-v3compatibility
9090
strategy:
@@ -115,7 +115,7 @@ jobs:
115115
shell: bash
116116

117117
display:
118-
name: "Display produced variables"
118+
name: 'Display produced variables'
119119
strategy:
120120
fail-fast: false
121121
matrix:
@@ -191,7 +191,7 @@ jobs:
191191
shell: bash
192192

193193
display-without-checkout:
194-
name: "Display produced variables (without checkout)"
194+
name: 'Display produced variables (without checkout)'
195195
needs:
196196
- display
197197
strategy:
@@ -236,7 +236,7 @@ jobs:
236236
- name: Using correct short length
237237
uses: ./
238238
with:
239-
prefix: "CSL_"
239+
prefix: 'CSL_'
240240
short-length: 4
241241
- name: Using correct length // Validate that all short variables lengths are equals to short-length
242242
run: |
@@ -248,8 +248,8 @@ jobs:
248248
id: using-wrong-short-length
249249
uses: ./
250250
with:
251-
prefix: "WSL_"
252-
short-length: "wrong"
251+
prefix: 'WSL_'
252+
short-length: 'wrong'
253253
continue-on-error: true
254254
- name: Using wrong short length // Validate that the action end with an error
255255
run: |
@@ -278,7 +278,7 @@ jobs:
278278
- name: Using correct short length
279279
uses: ./this-action
280280
with:
281-
prefix: "CSL_"
281+
prefix: 'CSL_'
282282
short-length: 4
283283
- name: Using correct length // Validate that all short variables lengths are equals to short-length
284284
run: |
@@ -290,7 +290,7 @@ jobs:
290290
id: using-empty-short-length
291291
uses: ./this-action
292292
with:
293-
prefix: "ESL_"
293+
prefix: 'ESL_'
294294
continue-on-error: true
295295
- name: Using empty short length // Validate that the action don't end with an error
296296
run: |
@@ -304,8 +304,8 @@ jobs:
304304
id: using-wrong-short-length
305305
uses: ./this-action
306306
with:
307-
prefix: "WSL_"
308-
short-length: "wrong"
307+
prefix: 'WSL_'
308+
short-length: 'wrong'
309309
continue-on-error: true
310310
- name: Using wrong short length // Validate that the action end with an error
311311
run: |
@@ -329,7 +329,7 @@ jobs:
329329
- name: Using correct slug max length
330330
uses: ./
331331
with:
332-
prefix: "CML_"
332+
prefix: 'CML_'
333333
slug-maxlength: 1
334334
- name: Using correct max length // Validate that all slug variables lengths are equals or under the slug-maxlength
335335
run: |
@@ -341,8 +341,8 @@ jobs:
341341
id: using-wrong-slug-max-length
342342
uses: ./
343343
with:
344-
prefix: "WML_"
345-
slug-maxlength: "wrong"
344+
prefix: 'WML_'
345+
slug-maxlength: 'wrong'
346346
continue-on-error: true
347347
- name: Using wrong slug max length // Validate that the action end with an error
348348
run: |
@@ -356,8 +356,8 @@ jobs:
356356
id: using-empty-slug-max-length
357357
uses: ./
358358
with:
359-
prefix: "EML_"
360-
slug-maxlength: ""
359+
prefix: 'EML_'
360+
slug-maxlength: ''
361361
continue-on-error: true
362362
- name: Using empty slug max length // Validate that the action end with an error
363363
run: |
@@ -371,8 +371,8 @@ jobs:
371371
id: using-nolimit-slug-max-length
372372
uses: ./
373373
with:
374-
prefix: "NLML_"
375-
slug-maxlength: "nolimit"
374+
prefix: 'NLML_'
375+
slug-maxlength: 'nolimit'
376376
- name: Using no limit on slug max length // Validate that the action end with an error
377377
run: |
378378
[[ "$(env | grep "NLML_" | grep "_SLUG" | wc -l)" -gt 0 ]]
@@ -394,5 +394,3 @@ jobs:
394394
uses: actions/checkout@v3
395395
- name: Release this GitHub Action
396396
uses: rlespinasse/release-that@v1
397-
with:
398-
without-prefix: true

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,13 @@ Please, use the current major tag `v4` or a version tag (see [releases pages][re
246246
- [Github Actions : enfin des pipelines accessibles aux développeurs][talk-1] (in french :fr:)
247247
- The next one is you. _Don't hesitate to add youself to this list._
248248

249-
[actions]: https://github.com/rlespinasse/github-slug-action/actions
250-
[license]: https://github.com/rlespinasse/github-slug-action/blob/v4.x/LICENSE
251249
[examples]: https://github.com/rlespinasse/github-slug-action/tree/v4.x/examples
252250
[custom-variable]: https://github.com/rlespinasse/github-slug-action/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=
253251
[releases]: https://github.com/rlespinasse/github-slug-action/releases
254252
[issue-15]: https://github.com/rlespinasse/github-slug-action/issues/15
255253
[issue-104]: https://github.com/rlespinasse/github-slug-action/issues/104
256254

257-
[git-revpars]: https://git-scm.com/docs/git-rev-parse#Documentation/git-rev-parse.txt---shortlength
255+
[git-revparse]: https://git-scm.com/docs/git-rev-parse#Documentation/git-rev-parse.txt---shortlength
258256
[git-core-abbrev]: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreabbrev
259257

260258
[default-environment-variables]: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables

0 commit comments

Comments
 (0)