ci: add version env

This commit is contained in:
janniks
2022-06-20 22:40:02 +02:00
committed by janniks
parent 99043ad114
commit a9b041eb3d
3 changed files with 15 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
name: main
name: publish-beta
on:
push:
@@ -14,13 +14,9 @@ jobs:
uses: ./.github/workflows/pre-run.yml
secrets: inherit
tests:
needs: pre-run
uses: ./.github/workflows/tests.yml
publish-beta:
runs-on: ubuntu-latest
needs: [pre-run, tests]
needs: pre-run
if: "needs.pre-run.outputs.is-not-fork == 'true' && !contains(github.event.head_commit.message, 'chore: version packages')"
steps:
- uses: actions/checkout@v3

View File

@@ -1,5 +1,13 @@
name: tests
on: [workflow_call, workflow_dispatch]
on:
push:
branches:
- master
tags-ignore:
- "**"
workflow_call:
workflow_dispatch:
jobs:
tests:

View File

@@ -9,6 +9,10 @@ on:
workflow_dispatch:
env:
COMMIT_USER: Hiro DevOps
COMMIT_EMAIL: 45208873+blockstack-devops@users.noreply.github.com
jobs:
pre-run:
uses: ./.github/workflows/pre-run.yml