Skip to content

Commit 0d98e00

Browse files
committed
ci(deploy): move git fetch/reset into workflow (decouple from deploy.sh --pull)
1 parent 42e6a46 commit 0d98e00

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ jobs:
3232
set -euo pipefail
3333
cd /opt/openstudy
3434
REF="${{ github.event.inputs.ref || github.ref_name }}"
35-
OPENSTUDY_DEPLOY_REF="$REF" ./deploy.sh --pull
35+
echo "Deploying ref: $REF"
36+
git fetch --all --tags
37+
git reset --hard "$REF"
38+
echo "Now at: $(git log -1 --oneline)"
39+
./deploy.sh

0 commit comments

Comments
 (0)