Skip to content

test working directory in up action #11

test working directory in up action

test working directory in up action #11

Workflow file for this run

name: Teardown Preevy environment
on:
pull_request:
types:
- closed
permissions:
id-token: write
contents: read
concurrency: preevy-${{ github.event.number }}
jobs:
teardown:
permissions: write-all
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.PREEVY_SA_KEY }}'
- uses: livecycle/preevy-down-action@2ba0bcdc84fcb1d2df97959683cc8b6e8eab6414
with:
profile-url: ${{ vars.PREEVY_PROFILE_URL }}
install: gh-release
args: "--force"
#
# OPTIONAL: delete GH deployments and environments
# Requires a custom GH app installed on this repo.
# See https://github.com/marketplace/actions/delete-deployment-environment#how-to-obtain-the-proper-token
# To disable this feature, remove the rest of the steps starting here
#
# Points to a recent commit instead of `main` to avoid supply chain attacks. (The latest tag is very old.)
- name: 🎟 Get GitHub App token
uses: navikt/github-app-token-generator@a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
id: get-token
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: 🗑 Delete deployment environment
uses: strumwolf/[email protected]
with:
# Use a JWT created with your GitHub App's private key
token: ${{ steps.get-token.outputs.token }}
environment: pr-${{ github.event.number }}
ref: ${{ github.ref_name }}