Skip to content

Commit 763f24d

Browse files
authored
Fetch and reset,
1 parent b0f40ad commit 763f24d

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/operations.site.deploy.ddev.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,21 @@ jobs:
119119
run-with-summary git clone --recursive ${{ inputs.git_repository }} ${{ inputs.git_root }}
120120
fi
121121
cd ${{ inputs.git_root }}
122-
git fetch origin
123-
git checkout --force ${{ inputs.git_reference }}
124-
122+
125123
SUMMARY=""
124+
125+
SUCCESS="Pre-deploy git status" \
126+
run-with-summary git log -1
126127
127-
SUCCESS="git status" \
128-
run-with-summary git status
128+
git fetch
129+
git reset --hard origin/${{ inputs.git_reference }}
129130
130-
SUCCESS="git log" \
131+
SUCCESS="Post deploy git status" \
131132
run-with-summary git log -1
132133
134+
SUCCESS="git status" \
135+
run-with-summary git status
136+
133137
start-site:
134138
name: Start site
135139
runs-on: ${{ inputs.github_runs_on }}

0 commit comments

Comments
 (0)