From 07df54ef89ff285c4fa9e663a02c8f466c956ef8 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 16 Oct 2023 15:22:36 +0100 Subject: [PATCH] Output branch name in workflow * This is mainly for debugging, it outputs the current branch --- .github/workflows/continuous-integration-terraform.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration-terraform.yml b/.github/workflows/continuous-integration-terraform.yml index d5f6496..72a975c 100644 --- a/.github/workflows/continuous-integration-terraform.yml +++ b/.github/workflows/continuous-integration-terraform.yml @@ -65,7 +65,11 @@ jobs: - name: Get branch name id: branch-name - run: echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/})" + run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT + + - name: Show branch name + run: | + echo "Current branch: ${{ steps.branch-name.outputs.branch }}" - name: Generate Terraform docs uses: terraform-docs/gh-actions@v1.0.0