Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17 release learnings #39

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Geyser CI

on:
push:
branches: [ master ]
branches:
- master
- 'v*.*'
tags:
- 'v*.*.*'
pull_request:
branches: [ master ]
branches:
- master
- 'v*.*'

jobs:
lint:
Expand Down
13 changes: 12 additions & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
#!/usr/bin/env sh
cargo workspaces version --all --exact --no-individual-tags

# Get the current branch name
current_branch=$(git rev-parse --abbrev-ref HEAD)

branch_pattern="^v[0-9]+\.[0-9]+$"

if [[ $current_branch =~ $branch_pattern ]] || [ "$current_branch" = "master" ]; then
# If the current branch is a version branch or master, run the cargo workspaces version command
cargo workspaces version --all --exact --no-individual-tags --allow-branch $current_branch
else
echo "Current branch does not match the allowed patterns."
fi