From 07cd741d7eeaef81e000db1ddf6169da9b894485 Mon Sep 17 00:00:00 2001 From: Ines Gimeno Molina <142247121+ines-gimeno-molina@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:19:30 +0100 Subject: [PATCH] Update label-new-issues.yml --- .github/workflows/label-new-issues.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/label-new-issues.yml b/.github/workflows/label-new-issues.yml index 286df11..32ae73b 100644 --- a/.github/workflows/label-new-issues.yml +++ b/.github/workflows/label-new-issues.yml @@ -44,16 +44,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - + - name: Create Branch id: create-branch run: | echo "We will create a branch with this name: $BRANCH_NAME" - git checkout -b $BRANCH_NAME - git push origin $BRANCH_NAME - echo "::set-output name=BRANCH_FULL_NAME::$BRANCH_NAME" - echo "::set-output name=BRANCH_SHA::$(git rev-parse HEAD)" + gh issue develop $ISSUE_NUMBER -b dev -n $BRANCH_NAME env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} BRANCH_NAME: ${{ steps.set-branch-name.outputs.BRANCH_FULL_NAME }} + ISSUE_NUMBER: ${{ github.event.issue.number }}