From 581742164555bcd806fb2111c443eaf6725e348f Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 11 Jun 2024 17:52:32 -0700 Subject: [PATCH] set outputs --- .github/workflows/compatibility.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 64e37b71c1e8..788b8a7ae860 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -26,6 +26,8 @@ env: jobs: get-changed-files: runs-on: ubuntu-latest + outputs: + changed_files: ${{ steps.get_changes.outputs.changed_files }} steps: - name: Checkout uses: actions/checkout@v3 @@ -39,9 +41,13 @@ jobs: echo "EOF" >> $GITHUB_OUTPUT - name: Echo changed files run: echo "${{ steps.get_changes.outputs.changed_files }}" - if: ${{ contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-cohere') || contains(needs.get-changed-files.outputs.changed_files, 'langchain-core') }} - - name: Great success - run: echo "Great success" + + another-job: + needs: get-changed-files + runs-on: ubuntu-latest + steps: + - name: Use changed files + run: echo "${{ needs.get-changed-files.outputs.changed_files }}" # cohere-lowest-deps: # needs: get-changed-files