Skip to content

Commit

Permalink
chore: fix steps order in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Mar 15, 2023
1 parent 97103c4 commit 9018cbd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/create-hotfix-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ jobs:
# Only allow these users to create new hotfix branch
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs')
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Check Stale Release Branches
id: stale-release-branches
run: |
branches_list=$(git branch -a | grep -e "origin/hotfix/" -e "origin/hotfix-release/" -e "origin/release/")
echo "Stales release branches list: $branches_list"
echo "branches_list=$branches_list" >> $GITHUB_OUTPUT
- name: Checkout
if: steps.stale-release-branches.outputs.branches_list == ''
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Setup Node
if: steps.stale-release-branches.outputs.branches_list == ''
uses: actions/setup-node@v3
Expand Down

0 comments on commit 9018cbd

Please sign in to comment.