Skip to content

Commit

Permalink
Don't bother deleting stack if one does not exist, set correct workin…
Browse files Browse the repository at this point in the history
…g directory (#8206) (#8207)

* Don't bother deleting stack if one does not exist
* update working directory
  • Loading branch information
chainlink committed Sep 16, 2022
1 parent 368a471 commit 6450c44
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/destroy_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
wget https://get.pulumi.com/releases/sdk/pulumi-v3.32.0-linux-x64.tar.gz
tar xvf pulumi-v3.32.0-linux-x64.tar.gz
echo "${PWD}/pulumi" >> $GITHUB_PATH
pulumi stack select $CURRENT_BRANCH --non-interactive
pulumi destroy --yes --skip-preview
pulumi stack rm --yes
working-directory: infra
if pulumi stack select $CURRENT_BRANCH --non-interactive
then
pulumi destroy --yes --skip-preview
pulumi stack rm --yes
fi
working-directory: jupyter-extension/infra
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
CURRENT_BRANCH: ${{ github.head_ref }}
Expand Down

0 comments on commit 6450c44

Please sign in to comment.