Skip to content

Commit

Permalink
added syft version to github.event.inputs for dependent workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Feb 15, 2024
1 parent 726814f commit 43cb69c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 43cb69c

Please sign in to comment.