From 43cb69c8d0d69d68301958a0deb0ca735503900a Mon Sep 17 00:00:00 2001 From: rasswanth-s <43314053+rasswanth-s@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:39:33 +0530 Subject: [PATCH] added syft version to github.event.inputs for dependent workflow --- .github/workflows/cd-syft.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cd-syft.yml b/.github/workflows/cd-syft.yml index 0eb72df049b..d96efba0c4a 100644 --- a/.github/workflows/cd-syft.yml +++ b/.github/workflows/cd-syft.yml @@ -312,6 +312,10 @@ jobs: runs-on: ubuntu-latest permissions: contents: write # For tag and release notes. + + outputs: + syft_version: ${{ steps.release_checks.outputs.syft_version }} + steps: - name: Permission to home directory run: | @@ -354,6 +358,7 @@ jobs: run: | echo "github_release_version=$(python packages/grid/VERSION | sed 's/-beta./b/')" >> $GITHUB_OUTPUT echo "future_stable_version=$(python packages/grid/VERSION | sed 's/-beta.*//')" >> $GITHUB_OUTPUT + echo "syft_version=$(python packages/grid/VERSION)" >> $GITHUB_OUTPUT if [[ ${{ needs.merge-docker-images.outputs.release_tag}} == "beta" ]]; then echo "is_beta_release=true" >> $GITHUB_OUTPUT else @@ -520,3 +525,5 @@ jobs: needs: [deploy-syft] if: always() && github.repository == 'OpenMined/PySyft' && needs.deploy-syft.result == 'success' # don't run on forks uses: OpenMined/PySyft/.github/workflows/cd-post-release-tests.yml@dev + with: + syft_version: ${{ needs.deploy-syft.outputs.syft_version }}