Skip to content

Commit

Permalink
chore: release voting-verifier 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maancham committed Jul 24, 2024
1 parent 5da5df4 commit 041fe59
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-contracts-and-push-to-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,27 @@ jobs:
packages: write
id-token: write
steps:
- name: Determine if commit is a release
- name: Check for release information if present
id: check-release
run: |
commit_message="${{ github.event.head_commit.message }}"
is_release=${{ contains(github.event.head_commit.message, 'chore: release') }}
echo "Does commit belong to a release: $is_release"
echo "is-release=$is_release" >> $GITHUB_OUTPUT
if [ "$is_release" = "true" ]; then
release_info=$(echo "$commit_message" | sed -n 's/chore: release \(.*\) \(.*\)/\1 \2/p')
crate_name=$(echo $release_info | cut -d' ' -f1)
version=$(echo $release_info | cut -d' ' -f2)
echo "Crate Name: $crate_name"
echo "Version: $version"
echo "crate-name=$crate_name" >> $GITHUB_OUTPUT
echo "crate-version=$version" >> $GITHUB_OUTPUT
else
echo "Not a release commit. Skipping crate name and version extraction."
fi
- name: Determine branch
id: get-branch-name
Expand Down

0 comments on commit 041fe59

Please sign in to comment.