forked from redhat-developer/s2i-dotnetcore
-
Notifications
You must be signed in to change notification settings - Fork 18
32 lines (27 loc) · 899 Bytes
/
clean.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: clean
on:
pull_request:
branches:
- 'master'
types: ['closed']
defaults:
run:
working-directory: ./.
jobs:
clean-build-dev:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./.pipeline
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: Clean the Build and Dev Namespace
run: |
oc version
oc login --token=${{ secrets.OPENSHIFT_TOKEN}} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
npm ci
DEBUG=* npm run clean -- --pr=${{ github.event.pull_request.number }} --env=build --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}}
DEBUG=* npm run clean -- --pr=${{ github.event.pull_request.number }} --env=dev --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}}