Skip to content

test branch name

test branch name #10

name: create-issue-branch
on:
issues:
types: [opened]
jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Issue Branch
id: Create_Issue_Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Echo new Issue Branch name
run: echo ${{ steps.Create_Issue_Branch.outputs.branchName }}
- name: Create file in new Branch
run: |
git checkout -b ${{ steps.Create_Issue_Branch.outputs.branchName }}
echo "This is a new file" > new-file.txt
- name: Commit new file
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add new-file.txt
git commit -m "Add new file to new branch"
- name: Push to new branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push origin