Skip to content

Commit

Permalink
Update and rename create.yml to dev-create.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bitscoid authored Jan 2, 2024
1 parent 3582f16 commit f58183d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "🌲 Create Branches"
name: "🌲 Create Dev Branches"

on:
workflow_dispatch:

jobs:
create_branches:
runs-on: ubuntu-latest
name: "🌲 Create Branches"
name: "🌲 Create Dev Branches"
env:
EMAIL: ${{ secrets.GH_MAIL }}
NAME: ${{ secrets.GH_USER }}
Expand All @@ -28,11 +28,12 @@ jobs:
- name: 🌿 Push Branches
run: |
cd $(echo ${{github.repository}} | awk -F'/' '{print $2}')
git checkout dev
for ((i=1; i<=${{ env.BRANCH_COUNT }}; i++)); do
branch_name="${{ env.BRANCH_BASE_NAME }}${i}"
git branch $branch_name
git checkout $branch_name
git commit --allow-empty -m "Init ${branch_name}"
git push origin $branch_name
git checkout master
git checkout dev
done

0 comments on commit f58183d

Please sign in to comment.