From 59f97a3c682d273aeee32362899c8dc83afce2ca Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 3 Jul 2020 15:37:06 +0200 Subject: [PATCH] test distinguishe #1 --- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dafccc0..ae0395e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ name: build on: - push + never jobs: build: @@ -22,9 +22,9 @@ jobs: - name: debug run: | - echo ${{ github.event.ref }} - echo ${{ github.event.ref == 'refs/tags/[0-9]+.[0-9]+.[0-9]' }} - echo ${{ github.event.ref != 'refs/tags/[0-9]+.[0-9]+.[0-9]' }} + echo ${{ github.ref }} + echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]' }} + echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]' }} - name: build stable release if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3256589 --- /dev/null +++ b/.github/workflows/test.yml @@ -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]+' }}