Skip to content

Commit b755979

Browse files
committed
UsestartsWith and contain for checking tags
This achieves similar effect as tags: - "apache-arrow-*-rc*"
1 parent c5a81c7 commit b755979

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -529,30 +529,11 @@ jobs:
529529
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
530530
remote_host_key: ${{ secrets.NIGHTLIES_RSYNC_HOST_KEY }}
531531

532-
odbc-check-tags:
533-
needs: odbc
534-
name: ODBC Check RC Tag
535-
runs-on: ubuntu-latest
536-
outputs:
537-
rc-tag: ${{ steps.check-rc.outputs.rc-tag }}
538-
if: github.ref_type == 'tag' && github.repository == 'apache/arrow'
539-
steps:
540-
- name: Check Arrow RC Tag
541-
id: check-rc
542-
run: |
543-
if [[ "${GITHUB_REF_NAME}" =~ ^apache-arrow-.*-rc.*$ ]]; then
544-
echo "RC tag found"
545-
echo "rc-tag=true" >> "${GITHUB_OUTPUT}"
546-
else
547-
echo "RC tag not found"
548-
echo "rc-tag=false" >> "${GITHUB_OUTPUT}"
549-
fi
550-
551532
odbc-release:
552-
needs: odbc-check-tags
533+
needs: odbc
553534
name: ODBC release
554535
runs-on: ubuntu-latest
555-
if: needs.odbc-check-tags.outputs.rc-tag == 'true'
536+
if: ${{ startsWith(github.ref_name, 'apache-arrow-') && contains(github.ref_name, '-rc') }}
556537
permissions:
557538
# Upload to GitHub Release
558539
contents: write

0 commit comments

Comments
 (0)