From 9018cbd27237a3b725cd189e30bc1d4557aceff7 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju <88789928+saikumarrs@users.noreply.github.com> Date: Wed, 15 Mar 2023 12:11:37 +0530 Subject: [PATCH] chore: fix steps order in workflow --- .github/workflows/create-hotfix-branch.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-hotfix-branch.yaml b/.github/workflows/create-hotfix-branch.yaml index ff9608628e..e466ed0868 100644 --- a/.github/workflows/create-hotfix-branch.yaml +++ b/.github/workflows/create-hotfix-branch.yaml @@ -12,6 +12,9 @@ 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: | @@ -19,12 +22,6 @@ jobs: 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