diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index afb8445..109ad08 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -20,6 +20,11 @@ jobs: changed_files: runs-on: ubuntu-latest # windows-latest || macos-latest name: Test changed-files + outputs: + helm_any_changed: ${{ steps.changed-files-yaml.outputs.helm_any_changed }} + helm_all_changed_files: ${{ steps.changed-files-yaml.outputs.helm_all_changed_files }} + build_any_changed: ${{ steps.changed-files-yaml.outputs.build_any_changed }} + build_all_changed_files: ${{ steps.changed-files-yaml.outputs.build_all_changed_files }} steps: - uses: actions/checkout@v4 - name: Get all test, doc and src files that have changed @@ -49,4 +54,35 @@ jobs: DOC_ALL_CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.build_all_changed_files }} run: | echo "One or more build file(s) has changed." - echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES" \ No newline at end of file + echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES" + + + perform-echo: + needs: + - changed_files + runs-on: ubuntu-latest + steps: + - name: Echo + run: | + echo "Helm files changed" + echo "all variables are:" + echo "helm_any_changed: ${{ needs.changed_files.outputs.helm_any_changed }}" + echo ${{ needs.changed_files.outputs.helm_any_changed }} + echo "helm_all_changed_files: ${{ needs.changed_files.outputs.helm_all_changed_files }}" + echo "build_any_changed: ${{ needs.changed_files.outputs.build_any_changed }}" + echo ${{ needs.changed_files.outputs.build_any_changed }} + echo "build_all_changed_files: ${{ needs.changed_files.outputs.build_all_changed_files }}" + + echo ${{ needs.changed_files.outputs.helm_any_changed == 'true' }} + echo ${{ needs.changed_files.outputs.helm_any_changed == 'false' }} + + conditional-for-helm-change: + needs: + - changed_files + runs-on: ubuntu-latest + if: ${{ needs.changed_files.outputs.helm_any_changed == 'true' }} + steps: + - name: conditional-Echo + run: | + echo "Helm files Updated" + cat $GITHUB_OUTPUT \ No newline at end of file