test distinguishe #1

This commit is contained in:
jem 2020-07-03 15:37:06 +02:00
parent b591c78927
commit 59f97a3c68
2 changed files with 22 additions and 4 deletions

View file

@ -1,6 +1,6 @@
name: build name: build
on: on:
push never
jobs: jobs:
build: build:
@ -22,9 +22,9 @@ jobs:
- name: debug - name: debug
run: | run: |
echo ${{ github.event.ref }} echo ${{ github.ref }}
echo ${{ github.event.ref == 'refs/tags/[0-9]+.[0-9]+.[0-9]' }} echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]' }}
echo ${{ github.event.ref != 'refs/tags/[0-9]+.[0-9]+.[0-9]' }} echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]' }}
- name: build stable release - name: build stable release
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }} if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }}

18
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: test
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
name: test-my build
runs-on: ubuntu-latest
steps:
- name: debug
run: |
echo ${{ github.ref }}
echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]+' }}
echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]+' }}