Skip to content

Commit 13dca86

Browse files
committed
ci: automate creation of GitHub releases and tags
1 parent d97d6e4 commit 13dca86

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release-check.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release Checker
22

33
on:
44
pull_request_target:
5-
paths: [ 'Cargo.toml' ]
5+
paths: ${{{ .github.languages | map(select(. == "Rust")) | if length == 0 then ["version.json"] else ["Cargo.toml"] end }}}
66
types: [ opened, synchronize, reopened, labeled, unlabeled ]
77
workflow_dispatch:
88

@@ -16,6 +16,6 @@ concurrency:
1616

1717
jobs:
1818
release-check:
19-
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@rust
19+
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@${{{ .config.versions.uci // (.source.tag | sub("\\.[^.\\-\\+]+(?=\\-|\\+|$)"; "")) }}}
2020
with:
21-
sources: '["Cargo.toml"]'
21+
sources: '${{{ .github.languages | map(select(. == "Rust")) | if length == 0 then ["version.json"] else ["Cargo.toml"] end }}}'

.github/workflows/releaser.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Releaser
22

33
on:
44
push:
5-
paths: [ 'Cargo.toml' ]
5+
paths: ["Cargo.toml"]
66
workflow_dispatch:
77

88
permissions:
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
releaser:
17-
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@rust
17+
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0
1818
with:
1919
sources: '["Cargo.toml"]'
2020
secrets:

0 commit comments

Comments
 (0)