Skip to content

Commit 6c0b640

Browse files
authored
make branch name dynamic
1 parent b043481 commit 6c0b640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/django.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ jobs:
3232
env:
3333
ROOT_DIR: ${{ vars.ROOT_DIR }}
3434
ENV_DIR: ${{ vars.ENV_DIR }}
35+
BRANCH: ${{ github.ref_name }}
3536
run: |
3637
ssh server "
3738
cd $ROOT_DIR &&
38-
git pull origin main &&
39+
git pull origin $BRANCH &&
3940
source $ENV_DIR &&
4041
pip install -r requirements/production.txt &&
4142
python manage.py migrate --settings=config.settings.production &&

0 commit comments

Comments
 (0)