Skip to content

[LUCY-56][REFACTOR] - Update Station Names JSON #215

[LUCY-56][REFACTOR] - Update Station Names JSON

[LUCY-56][REFACTOR] - Update Station Names JSON #215

Workflow file for this run

# Clean out the deployment artifacts when a PR is closed, without a merge.
# This clean out gets rid of the PR artifacts in Dev and in Tools.
name: Clean out Dev from closed PR Artifacts
on:
pull_request:
branches: [dev]
types: [closed]
jobs:
clean:
name: Clean Deployment Artifacts for App, API in Dev and Tools environment
runs-on: ubuntu-latest
# Only do this when the PR was not merged and only for dev
if: ${{ github.event.pull_request.merged != true && github.base_ref == 'dev' }}
env:
BUILD_ID: ${{ github.event.number }}
steps:
# Checkout the PR branch
- name: Checkout Dev Branch - Contains the Pipeline Code
uses: actions/checkout@v2
with:
ref: 'dev'
# Install Node - for `node` and `npm` commands
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 10.16
# Log in to OpenShift.
- name: Log in to OpenShift
run: oc login --token=${{ secrets.TOOLS_SA_TOKEN }} --server=https://api.silver.devops.gov.bc.ca:6443
# Clean the api deployment artifacts
- name: Clean API Deployment
working-directory: "./api/.pipeline/"
run: |
npm ci
DEBUG=* npm run clean -- --pr=$BUILD_ID --env=build
DEBUG=* npm run clean -- --pr=$BUILD_ID --env=dev
# Clean the app deployment artifacts
- name: Clean APP Deployment
working-directory: "./app/.pipeline/"
run: |
npm ci
DEBUG=* npm run clean -- --pr=$BUILD_ID --env=build
DEBUG=* npm run clean -- --pr=$BUILD_ID --env=dev