mirror of
https://github.com/ditkrg/k8s-set-context.git
synced 2026-01-25 15:23:02 +00:00
Review fix
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -17,9 +17,13 @@ jobs:
|
|||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Extract branch name
|
||||||
|
id: extract_branch
|
||||||
|
run: |
|
||||||
|
echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
|
||||||
|
|
||||||
- name: 'Validate build'
|
- name: 'Validate build'
|
||||||
env:
|
if: steps.extract_branch.outputs.branch == 'master'
|
||||||
branch: ${GITHUB_REF##*/}
|
|
||||||
run: |
|
run: |
|
||||||
echo ${env:branch}
|
echo ${env:branch}
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
Reference in New Issue
Block a user