Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
feat: support RC versions in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot committed Aug 4, 2023
1 parent 7d7b567 commit 4a69160
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/.github/workflows/go-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ concurrency:

jobs:
go-check:
uses: protocol/.github/shared/.github/workflows/go-check.yml@${{{ source.tag | split(".") | del(.[-1]) | join(".") }}}
uses: protocol/.github/shared/.github/workflows/go-check.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0:2] | join(".")), (.[1:])] | flatten | join("-") }}}
2 changes: 1 addition & 1 deletion templates/.github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ concurrency:

jobs:
go-test:
uses: protocol/.github/shared/.github/workflows/go-test.yml@${{{ source.tag | split(".") | del(.[-1]) | join(".") }}}
uses: protocol/.github/shared/.github/workflows/go-test.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0:2] | join(".")), (.[1:])] | flatten | join("-") }}}
2 changes: 1 addition & 1 deletion templates/.github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ concurrency:

jobs:
js-test-and-release:
uses: protocol/.github/shared/.github/workflows/js-test-and-release.yml@${{{ source.tag | split(".") | del(.[-1]) | join(".") }}}
uses: protocol/.github/shared/.github/workflows/js-test-and-release.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0:2] | join(".")), (.[1:])] | flatten | join("-") }}}
2 changes: 1 addition & 1 deletion templates/.github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ concurrency:

jobs:
release-check:
uses: protocol/.github/shared/.github/workflows/release-check.yml@${{{ source.tag | split(".") | .[0] }}}
uses: protocol/.github/shared/.github/workflows/release-check.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0]), (.[1:])] | flatten | join("-") }}}
2 changes: 1 addition & 1 deletion templates/.github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ concurrency:

jobs:
releaser:
uses: protocol/.github/shared/.github/workflows/releaser.yml@${{{ source.tag | split(".") | .[0] }}}
uses: protocol/.github/shared/.github/workflows/releaser.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0]), (.[1:])] | flatten | join("-") }}}
2 changes: 1 addition & 1 deletion templates/.github/workflows/tagpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ concurrency:

jobs:
releaser:
uses: protocol/.github/shared/.github/workflows/tagpush.yml@${{{ source.tag | split(".") | .[0] }}}
uses: protocol/.github/shared/.github/workflows/tagpush.yml@${{{ source.tag | split("-") | [(.[0] | split(".") | .[0]), (.[1:])] | flatten | join("-") }}}

0 comments on commit 4a69160

Please sign in to comment.