Skip to content

Commit 2c46f1a

Browse files
authored
Merge pull request #109 from api3dao/108-make-sure-repo-is-fresh
Add git pull command to CI workflow
2 parents b8fb0b0 + 45be7f1 commit 2c46f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ jobs:
5050
run: |
5151
echo "::add-mask::$TF_VAR_API3TRACKER_ENDPOINT"
5252
echo "::add-mask::$TF_VAR_API3TRACKER_ARCHIVE_ENDPOINT"
53-
export REMOTE_CMD="cd $SSH_REMOTE_PATH && terraform init && terraform apply -auto-approve && docker system prune -af"
53+
export REMOTE_CMD="cd $SSH_REMOTE_PATH && git pull && terraform init && terraform apply -auto-approve && docker system prune -af"
5454
ssh -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null $SSH_HOST bash -c '"'$REMOTE_CMD'"'

0 commit comments

Comments
 (0)