Skip to content

Commit

Permalink
Auto branching: Add randomness to branch name (#17647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogajduse authored Feb 20, 2025
1 parent a386c4c commit 27d9816
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 @@ -66,7 +66,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 @@ -269,7 +269,7 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
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 setup.py ./tests/foreman ./robottelo/* ./requirements.txt ./.github/* ./conf/robottelo.yaml.template
git commit -m "Changes for new ${{ github.event.inputs.target_branch }} branch"
Expand Down

0 comments on commit 27d9816

Please sign in to comment.