Skip to content

Commit

Permalink
Auto branching: Add randomness to branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ogajduse committed Feb 20, 2025
1 parent 06e081f commit 17b56b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto_branching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Checkout from ${{ github.event.inputs.target_branch }} branch for auto-branching changes
id: checkout-to-auto-branch
run: |
branch_name="auto-branching-${{ github.event.inputs.target_branch }}-$(date '+%s')"
branch_name="auto-branching-${{ github.event.inputs.target_branch }}-$(date '+%s.%N')"
git checkout -b "$branch_name"
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
run: |
git config --local user.email "Satellite-QE.satqe.com"
git config --local user.name "Satellite-QE"
branch_name="auto-branching-${{ github.event.inputs.target_branch }}-$(date '+%s')"
branch_name="auto-branching-${{ github.event.inputs.target_branch }}-$(date '+%s.%N')"
git checkout -b "$branch_name"
git add ./.github/*
git commit -m "Changes for ${{ github.event.inputs.target_branch }} new branch"
Expand Down

0 comments on commit 17b56b4

Please sign in to comment.