Skip to content

Commit

Permalink
Added fetch depth and debug --remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl committed Nov 6, 2023
1 parent 1cf63e3 commit e8b0a96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pipeline_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- name: Checkout code
id: git_checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

# Get the tag based on the GITHUB REF env var
- id: get_tag
Expand Down Expand Up @@ -118,8 +120,9 @@ jobs:
- id: get_branch_name
run: |
# Get branch name
git branch --remotes --contains "${{ github.ref }}"
raw="$( \
git branch --remotes --contains ${{ github.ref }} \
git branch --remotes --contains "${{ github.ref }}" \
)"
echo "branch_name=${raw/origin\/}" >> "${GITHUB_OUTPUT}"
Expand Down

0 comments on commit e8b0a96

Please sign in to comment.