From 5d9aee63a4187559d6f3b42bde5c3ec09b49bb34 Mon Sep 17 00:00:00 2001 From: YIZIHN Date: Mon, 24 Jun 2024 17:04:37 +0900 Subject: [PATCH] Update create-jira-issue.yml --- .github/workflows/create-jira-issue.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index 8cedef77..3d9d05d9 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -56,6 +56,8 @@ jobs: echo "JIRA_ISSUE_KEY=$JIRA_ISSUE_KEY" >> $GITHUB_ENV - name: Create branch for the issue + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | export LANG=en_US.UTF-8 ISSUE_NUMBER=${{ github.event.issue.number }} @@ -64,7 +66,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git checkout -b "$BRANCH_NAME" - git push origin "$BRANCH_NAME" + git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}" "$BRANCH_NAME" update_jira: if: github.event_name == 'push'