Skip to content

Commit

Permalink
removed the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 26, 2024
1 parent af1648c commit 2735d96
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/update-yaml-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Checkout branch
run: |
if [ "${{github.event_name}}" == "push" ]; then
if git ls-remote --heads origin ${{steps.identify_branch_name.outputs.branchName}} | grep -q "refs/heads/${{steps.identify_branch_name.outputs.branchName}}"; then
echo "checking out existing branch"
git fetch origin > /dev/null 2>&1
Expand All @@ -49,7 +48,6 @@ jobs:
echo "branchName *****>> ${{steps.identify_branch_name.outputs.branchName}}"
git checkout -b ${{steps.identify_branch_name.outputs.branchName}}
fi
fi
- name: Staging & commiting
id: detect-changes
Expand Down

0 comments on commit 2735d96

Please sign in to comment.