From e619b8ba2b439646c634a9baa709969c494bf4db Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Fri, 5 Apr 2024 16:47:35 -0400 Subject: [PATCH] 1. Rename Cut Pre-Release to Create GitHub Release for Release Candidate 2. Set environment variable GH_TOKEN in Create GitHub Release for Release Candidate step --- .github/workflows/package.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index abc4c1c6d0204..c21e115ffc449 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -59,13 +59,15 @@ jobs: - name: Install Archery run: | python3 -m pip install -e arrow/dev/archery[crossbow] - - name: Download MLTBX Release Candidate + - name: Download Release Candidate MLTBX # Download the MLTBX file from the crossbow GitHub Release's area. run: | .arrow/dev/release/04-binary-download.sh ${ARROW_VERSION} ${ARROW_RC_NUM} --task-filter matlab mltbx_file=$(find arrow/packages -name '*.mltbx' -type f) echo "ARROW_MLTBX_FILE=${mltbx_file}" >> $GITHUB_ENV - - name: Cut Pre-Release + - name: Create GitHub Release for Release Candidate + # Create a pre-release in apache/arrow's GitHub Releases area. + # Attach the release candidate MLTBX file as an asset. run: | target_branch=release-${ARROW_VERSION_WITH_RC} title="Apache Arrow ${ARROW_VERSION} RC${ARROW_RC_NUM}" @@ -79,3 +81,5 @@ jobs: --notes "${release_notes}" \ --title "${title}" \ --repo ${repository} + env: + GH_TOKEN: ${{ github.token }}