Skip to content

Commit

Permalink
hals
Browse files Browse the repository at this point in the history
  • Loading branch information
Erutis committed Aug 20, 2024
1 parent 64790ea commit d1b7438
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,28 @@ jobs:
with:
python-version: '3.11'

- name: Create new branch
id: create-new-branch
- name: Generate branch name
id: generate-branch-name
run: |
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
BRANCH_NAME="my-branch-$TIMESTAMP"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Checkout new branch
id: checkout-new-branch
run: |
git checkout -b ${{ env.BRANCH_NAME }}
git push origin ${{ env.BRANCH_NAME }}
- name: Create PR
id: create-pull-request
uses: peter-evans/create-pull-request@v5
with:
branch: ${{ env.BRANCH_NAME }}
base: main
title: "Create a new branch"
author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
run: |
# Create a timestamp
TIMESTAMP=$(date +'%Y%m%d%H%M')
BRANCH_NAME="my-branch-$TIMESTAMP"
git checkout -b $BRANCH_NAME
git push origin $BRANCH_NAME
echo "Branch $BRANCH_NAME created and pushed."


# run-alembic-script-gen:

Expand Down

0 comments on commit d1b7438

Please sign in to comment.