From a4554a36b201580e77f812636f467d5f6939429d Mon Sep 17 00:00:00 2001 From: thunderbirdgit Date: Wed, 28 Aug 2024 22:26:21 +0530 Subject: [PATCH] Update precommit.yml --- .github/workflows/precommit.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 18d7855..5ca5363 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -30,14 +30,22 @@ jobs: - name: Print Short Git SHA run: | echo "Git SHA: ${{ steps.get_sha.outputs.short_sha }}" + + validatevars: + runs-on: ubuntu-latest + steps: + - name: Debug Outputs + run: | + echo "Branch Name: ${{ needs.get-branch-name.outputs.branch_name }}" + echo "Short SHA: ${{ needs.get-short-sha.outputs.short_sha }}" build: strategy: matrix: service_name: ["hw-ui-service", "hw-ui-service2"] - needs: [get-short-sha, determine-branch] + needs: [get-short-sha, determine-branch, validatevars] uses: thunderbirdgit/gh-actions-wf/.github/workflows/nodejs-build.yml@main with: service_name: ${{matrix.service_name}} short_sha: ${{ needs.get-short-sha.outputs.short_sha }} - branch_name: ${{ needs.determine-branch.outputs.branch_name }} + branch_name: ${{ needs.determine-branch.outputs.branch_name }}