Skip to content

Commit

Permalink
apacheGH-43270: [Release] Fix input variables on post-01-tag.sh (apac…
Browse files Browse the repository at this point in the history
…he#43271)

### Rationale for this change

Scripts is failing to be executed

### What changes are included in this PR?

Fixing the script

### Are these changes tested?

Locally during the release

### Are there any user-facing changes?

No
* GitHub Issue: apache#43270

Lead-authored-by: Raúl Cumplido <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
raulcd and kou authored Jul 17, 2024
1 parent de17643 commit 5224f20
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dev/release/post-01-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -eu
set -o pipefail

if [ "$#" -ne 2 ]; then
echo "Usage: $0 <version> <rc-num>"
exit
fi

version=$1
rc=$2

# Create the release tag and trigger the Publish Release workflow.
release_candidate_tag=apache-arrow-${version}-rc${num}
release_tag=apache-arrow-${version}
git tag -a ${release_tag} ${release_candidate_tag}^{} -m "[Release] Apache Arrow Release ${version}"
release_candidate_tag=${release_tag}-rc${rc}
git tag -a ${release_tag} ${release_candidate_tag} -m "[Release] Apache Arrow Release ${version}"
git push apache ${release_tag}

0 comments on commit 5224f20

Please sign in to comment.