upgrade-check: Add create cache directory step.

Create cache directories for the upgrade check
in the production-suite.
This commit is contained in:
Gaurav Pandey 2021-07-01 18:14:04 +05:30 committed by Tim Abbott
parent 37f98fdec8
commit 9282956f19
1 changed files with 6 additions and 0 deletions

View File

@ -252,6 +252,12 @@ jobs:
chmod +x /tmp/production-verify chmod +x /tmp/production-verify
chmod +x /tmp/send-failure-message chmod +x /tmp/send-failure-message
- name: Create cache directories
run: |
dirs=(/srv/zulip-{npm,venv,emoji}-cache)
sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}"
- name: Upgrade production - name: Upgrade production
run: sudo /tmp/production-upgrade run: sudo /tmp/production-upgrade