Updated workflow
All checks were successful
Rust Build / Check (pull_request) Successful in 32s
Rust Build / Test Suite (pull_request) Successful in 30s
Rust Build / Rustfmt (pull_request) Successful in 33s
Rust Build / Clippy (pull_request) Successful in 30s
Rust Build / build (pull_request) Successful in 29s
All checks were successful
Rust Build / Check (pull_request) Successful in 32s
Rust Build / Test Suite (pull_request) Successful in 30s
Rust Build / Rustfmt (pull_request) Successful in 33s
Rust Build / Clippy (pull_request) Successful in 30s
Rust Build / build (pull_request) Successful in 29s
This commit is contained in:
@@ -42,6 +42,12 @@ jobs:
|
||||
echo "Printing version"
|
||||
echo "Version: ${{ steps.version.outputs.project_tag_release }}"
|
||||
|
||||
- name: Check Branch
|
||||
if: github.ref != 'refs/heads/main' || github.ref != 'refs/heads/devel' # Replace 'main' with your required branch
|
||||
run: |
|
||||
echo "::error::Release can only be created from the 'main' branch."
|
||||
exit 1
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
Reference in New Issue
Block a user