Skip to content

Commit

Permalink
Manual trigger, composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Dec 28, 2023
1 parent 954554f commit 96a8df8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
4 changes: 0 additions & 4 deletions .github/actions/prepare-api-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ outputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: ./.github/actions

- name: Saleor login
uses: ./.github/actions/cli-login
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/actions/prepare-backups-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ outputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: ./.github/actions

- name: Saleor login
uses: ./.github/actions/cli-login
with:
Expand Down
30 changes: 15 additions & 15 deletions .github/actions/prepare-instance/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: ./.github/actions

- name: Saleor login
uses: ./.github/actions/cli-login
with:
Expand All @@ -54,9 +50,11 @@ runs:
BACKUP_ID: ${{ inputs.BACKUP_ID }}
INSTANCE_NAME: ${{ inputs.POOL_NAME }}
run: |
npx saleor backup restore "$BACKUP_ID" \
--environment="$INSTANCE_NAME" \
--skip-webhooks-update
echo "reload snapshot"
# run: |
# npx saleor backup restore "$BACKUP_ID" \
# --environment="$INSTANCE_NAME" \
# --skip-webhooks-update

- name: Create new instance
shell: bash
Expand All @@ -66,11 +64,13 @@ runs:
BACKUP_ID: ${{ inputs.BACKUP_ID }}
INSTANCE_NAME: ${{ inputs.POOL_NAME }}
run: |
npx saleor env create "$INSTANCE_NAME" \
--project=project-for-pr-testing \
--database=snapshot \
--restore-from="$BACKUP_ID" \
--saleor=saleor-master-staging \
--domain="$INSTANCE_NAME" \
--skip-restrict \
--skip-webhooks-update
echo "create new instance"
# run: |
# npx saleor env create "$INSTANCE_NAME" \
# --project=project-for-pr-testing \
# --database=snapshot \
# --restore-from="$BACKUP_ID" \
# --saleor=saleor-master-staging \
# --domain="$INSTANCE_NAME" \
# --skip-restrict \
# --skip-webhooks-update
4 changes: 4 additions & 0 deletions .github/workflows/run-test-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
BACKUP_VER: ${{ steps.cloud_variables.outputs.BACKUP_VER }}
BACKUP_NAME: ${{ steps.cloud_variables.outputs.BACKUP_NAME }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: ./.github/actions

- name: Generate variables
id: cloud_variables
uses: ./.github/actions/prepare-tests-variables
Expand Down

0 comments on commit 96a8df8

Please sign in to comment.