[BUG] Attach auth headers for rtk client endpoints #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Branch from Issue | |
on: | |
issues: | |
types: [opened] | |
pull_request: | |
types: [opened] | |
jobs: | |
create-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Create branch | |
id: create_branch | |
run: | | |
ISSUE_NUMBER=$(jq -r ".issue.number" "$GITHUB_EVENT_PATH") | |
ISSUE_TITLE=$(jq -r ".issue.title" "$GITHUB_EVENT_PATH") | |
BRANCH_NAME=$(echo "$ISSUE_TITLE" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | cut -c 1-50) | |
git checkout -b "TCCPISSUE${ISSUE_NUMBER}-$BRANCH_NAME" | |
echo "::set-output name=branch_name::TCCPISSUE${ISSUE_NUMBER}-$BRANCH_NAME" |