From 621bad825c30c6f85235339b40cebd692c06a16a Mon Sep 17 00:00:00 2001 From: Matvey Arye Date: Wed, 5 Jun 2024 21:01:05 -0400 Subject: [PATCH] add git tag ref option for DEB packaging --- .github/workflows/deb-packager.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deb-packager.yaml b/.github/workflows/deb-packager.yaml index d70e326..ce9a9e8 100644 --- a/.github/workflows/deb-packager.yaml +++ b/.github/workflows/deb-packager.yaml @@ -14,6 +14,10 @@ on: description: 'PG minor version. Default: 1' required: false default: '1' + TAG_GIT_REF: + description: 'Tag git Ref (leave empty for same as Tag)' + required: false + default: '' jobs: packager: @@ -27,6 +31,7 @@ jobs: PG_CONFIG_PATH: postgresql/bin/pg_config TAG: ${{ github.event.inputs.tag }} TAG_DIR: pgvectorscale + TAG_GIT_REF: ${{ github.event.inputs.TAG_GIT_REF == '' && github.event.inputs.tag || github.event.inputs.TAG_GIT_REF}} steps: - name: Checkout pgvectorscale @@ -50,7 +55,7 @@ jobs: uses: actions/checkout@v4 with: repository: timescale/pgvectorscale - ref: '${{ env.TAG }}' + ref: '${{ env.TAG_GIT_REF }}' path: ${{ env.TAG_DIR }} - name: Install pgrx