change: preview by gitea.ref_name
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
docker_folder_changed: ${{ steps.docker_folder.outputs.changed }}
|
docker_folder_changed: ${{ steps.docker_folder.outputs.changed }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
|
|
||||||
- name: Check Latest Hugo Version
|
- name: Check Latest Hugo Version
|
||||||
id: get_latest
|
id: get_latest
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Merge preview Branch on main
|
- name: Merge preview Branch on main
|
||||||
run: |
|
run: |
|
||||||
git merge --ff-only origin/preview
|
git merge --ff-only origin/${{ gitea.ref_name }}
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
Deploy-Production:
|
Deploy-Production:
|
||||||
|
|||||||
Reference in New Issue
Block a user