-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different action for publishing release (#522)
* Use different action for publishing release * Swap * Follow current label format * on pr as well * Correct stuff
- Loading branch information
1 parent
15cae08
commit a9922f6
Showing
2 changed files
with
21 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
name: Release Label Check | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
label-check: | ||
check-release: | ||
runs-on: ubuntu-latest | ||
name: Check Release | ||
steps: | ||
- uses: jesusvasquez333/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: nash-io/cargo-release-action@main | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
valid-labels: "release/patch, release/minor, release/major" | ||
pull-request-number: '${{ github.event.pull_request.number }}' | ||
disable-reviews: true | ||
major-label: release/major | ||
minor-label: release/minor | ||
patch-label: release/patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters