increase logging in deploy script
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m24s
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m24s
for some reason it seems to not be fully updating the local repo, so increase logging and double pull
This commit is contained in:
@@ -46,8 +46,14 @@ jobs:
|
|||||||
- name: Update Application Code
|
- name: Update Application Code
|
||||||
run: |
|
run: |
|
||||||
cd /var/www/html/milsim-site-v4
|
cd /var/www/html/milsim-site-v4
|
||||||
|
version=`git log -1 --format=%H`
|
||||||
|
echo "Current Revision: $version"
|
||||||
|
echo "Updating to: ${{ github.sha }}
|
||||||
sudo -u nginx git reset --hard
|
sudo -u nginx git reset --hard
|
||||||
sudo -u nginx git pull origin main
|
sudo -u nginx git pull origin main
|
||||||
|
sudo -u nginx git pull origin main
|
||||||
|
new_version=`git log -1 --format=%H`
|
||||||
|
echo "Sucessfully updated to: $new_version
|
||||||
|
|
||||||
- name: Update Shared Dependencies and Fix Permissions
|
- name: Update Shared Dependencies and Fix Permissions
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user