Skip to content

Commit

Permalink
Merge pull request #634 from RafaySystems/branch-cut-fix
Browse files Browse the repository at this point in the history
Hard-coded the source branch as master in branch-cut workflow.
  • Loading branch information
himansh-rafay authored Aug 5, 2024
2 parents 600200e + 1b95814 commit cecb817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/branch-cut.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
source_branch:
description: 'Source branch name from which branch cut need to be done.'
required: true
default: main|master
default: master
release_branch:
description: 'New branch release branch name'
required: true
Expand All @@ -25,7 +25,7 @@ jobs:
run: |
git fetch --all
if [ "${{ github.event.inputs.source_branch }}" == 'main|master' ] || [ "${{ github.event.inputs.source_branch }}" == 'master|main' ]; then
SOURCE_BRANCH=$(git remote set-head origin -a | egrep -oE 'master|main$')
SOURCE_BRANCH='master'
echo source_branch=$SOURCE_BRANCH
else
SOURCE_BRANCH="${{ github.event.inputs.source_branch }}"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/branch-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:

steps:
- name: Checkout PR Branch
uses: actions/checkout@v4 # This action checks out the branch associated with the PR
uses: actions/checkout@v4 # This action checks out the branch associated with the PR
with:
token: ${{ secrets.JENKINS_PAT }}

- name: Set Git config
run: |
Expand Down

0 comments on commit cecb817

Please sign in to comment.