From 5246aa3409075eaf656b1e3c61d485ecb1895ec6 Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Tue, 1 Oct 2024 13:26:55 +0200 Subject: [PATCH] Update tests.yaml workflow to fix checkout action and save commit info Signed-off-by: Javier Lopez --- .github/workflows/tests.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4af60a8..f144bc4 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -14,10 +14,14 @@ jobs: token: ${{ secrets.OKTETO_TOKEN }} url: ${{ secrets.OKTETO_URL }} - name: checkout - uses: actions/checkout@master + uses: actions/checkout@maste + - name: Save Git values + run: | + echo "COMMIT_INFO_MESSAGE=\"$(git show -s --format='%h %s')\"" >> $GITHUB_ENV + shell: bash - name: "Run tests" uses: okteto/test@jlo/fix-fithub-multiline-envvars with: tests: "worker" - variables: "USER=im the admin,PASS=admin" + variables: USER="im the admin",PASS="admin",COMMIT_INFO_MESSAGE="${{ env.COMMIT_INFO_MESSAGE }}" log-level: "debug" \ No newline at end of file