Skip to content

Commit

Permalink
Output branch name in workflow
Browse files Browse the repository at this point in the history
* This is mainly for debugging, it outputs the current branch
  • Loading branch information
Stretch96 committed Oct 16, 2023
1 parent 5ff2b0c commit 07df54e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/continuous-integration-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit 07df54e

Please sign in to comment.