[2.3.x] Turf most tracking in jupyter extension #252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
up: | |
name: remove-preview | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.17.2' | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
service_account_key: ${{ secrets.GCP_KEY }} | |
project_id: ${{ env.PROJECT_ID }} | |
export_default_credentials: true | |
- name: Pulumi Destroy # The pulumi action was not used here, as it does not download plugins when just using destroy | |
run: | | |
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 | |
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 }} | |