Revert to snapshot (#2112)

* Use next tag for saleor cli

* Use dash instead of underscore for backup restore

Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
This commit is contained in:
Karolina Rakoczy 2022-06-23 11:16:06 +02:00 committed by GitHub
parent 6098bd293f
commit d48dcb87ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ jobs:
- name: Install saleor cli
id: install-saleor-cli
run: npm i -g saleor-cli
run: npm i -g saleor-cli@next
- name: Cache node modules
uses: actions/cache@v2
@ -68,11 +68,11 @@ jobs:
env:
ACCESS_TOKEN: ${{ secrets.CLOUD_ACCESS_TOKEN }}
run: echo '{"token":"Token ${{ secrets.CLOUD_ACCESS_TOKEN }}","telemetry":"false","organization_slug":"qa","organization_name":"QA","environment_id":"lHECN87U"}' > ~/.config/saleor.json
- name: revert snapshot
env:
SALEOR_CLI_ENV: staging
run: npx saleor backup restore MbdG5UXd --skip_webhooks_update
run: npx saleor backup restore MbdG5UXd --skip-webhooks-update
- name: Notify Slack
if: ${{ failure() }}