mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 21:43:49 +00:00
Ensured preview envs are generated on PRs only
This commit is contained in:
5
.github/workflows/deploy-preview.yml
vendored
5
.github/workflows/deploy-preview.yml
vendored
@@ -2,9 +2,6 @@ name: Deploy preview
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request: null
|
pull_request: null
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -19,7 +16,7 @@ jobs:
|
|||||||
node-version: 14.15
|
node-version: 14.15
|
||||||
- name: Generate slug
|
- name: Generate slug
|
||||||
id: generate_slug
|
id: generate_slug
|
||||||
run: echo "##[set-output name=slug;]$(echo ${GITHUB_REF#refs/heads/} | sed -r 's/[~\^]+//g' | sed -r 's/[^a-zA-Z0-9]+/-/g' | sed -r 's/^-+\|-+$//g' | tr A-Z a-z)"
|
run: echo "##[set-output name=slug;]$(echo ${GITHUB_HEAD_REF#refs/heads/} | sed -r 's/[~\^]+//g' | sed -r 's/[^a-zA-Z0-9]+/-/g' | sed -r 's/^-+\|-+$//g' | tr A-Z a-z)"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm ci && \
|
npm ci && \
|
||||||
|
|||||||
Reference in New Issue
Block a user