From d6cd90bc8e0526a140736615df9a67f356143123 Mon Sep 17 00:00:00 2001 From: Binbin Date: Sat, 14 Dec 2024 05:32:54 +0800 Subject: [PATCH] Skip build-release-packages CI job in forks (#1438) The CI job was introduced in #1363, we should skip it in forks. Signed-off-by: Binbin --- .github/workflows/build-release-packages.yml | 30 +++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-release-packages.yml b/.github/workflows/build-release-packages.yml index 8c32548f9e..68ecffe308 100644 --- a/.github/workflows/build-release-packages.yml +++ b/.github/workflows/build-release-packages.yml @@ -17,6 +17,7 @@ jobs: # This job provides the version metadata from the tag for the other jobs to use. release-build-get-meta: name: Get metadata to build + if: github.repository == 'valkey-io/valkey' runs-on: ubuntu-latest outputs: version: ${{ steps.get_version.outputs.VERSION }} @@ -44,20 +45,21 @@ jobs: INPUT_VERSION: ${{ inputs.version || github.ref_name }} generate-build-matrix: - name: Generating build matrix - runs-on: ubuntu-latest - outputs: - x86_64-build-matrix: ${{ steps.set-matrix.outputs.x86_64-build-matrix }} - arm64-build-matrix: ${{ steps.set-matrix.outputs.arm64-build-matrix }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - # Set up the list of target to build so we can pass the JSON to the reusable job - - uses: ./.github/actions/generate-package-build-matrix - id: set-matrix - with: - ref: ${{ inputs.version || github.ref_name }} - + name: Generating build matrix + if: github.repository == 'valkey-io/valkey' + runs-on: ubuntu-latest + outputs: + x86_64-build-matrix: ${{ steps.set-matrix.outputs.x86_64-build-matrix }} + arm64-build-matrix: ${{ steps.set-matrix.outputs.arm64-build-matrix }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + # Set up the list of target to build so we can pass the JSON to the reusable job + - uses: ./.github/actions/generate-package-build-matrix + id: set-matrix + with: + ref: ${{ inputs.version || github.ref_name }} + release-build-linux-x86-packages: needs: - release-build-get-meta