Skip to content

Commit 83f4e8f

Browse files
github-actions[bot]petesramekPete Sramekdependabot[bot]
authored
Promote develop/1.0 to preview/1.0 (#66)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Pete Sramek <me@petesramek.com> Co-authored-by: Pete Sramek <petr.sramek@dropoutcoder.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 0b02d99 commit 83f4e8f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: 'Validate release branch'
52-
if: ${{ needs.workflow-variables.outputs.is-release != 'true' || needs.workflow-variables.outputs.is-preview != 'true' }}
52+
if: ${{ needs.workflow-variables.outputs.is-release != 'true' && needs.workflow-variables.outputs.is-preview != 'true' }}
5353
run: |
5454
echo "This workflow can only be run on 'release/**' or 'preview/**' branches."
5555
exit 1
@@ -62,7 +62,7 @@ jobs:
6262
versioning:
6363
name: 'Extract version from branch'
6464
runs-on: ubuntu-latest
65-
needs: [workflow-variables]
65+
needs: [workflow-variables, validate-release]
6666
outputs:
6767
friendly-version: ${{ steps.format-version.outputs.friendly-version }}
6868
assembly-version: ${{ steps.format-version.outputs.assembly-version }}
@@ -115,7 +115,7 @@ jobs:
115115

116116
build:
117117
name: 'Compile source code'
118-
needs: [workflow-variables, versioning]
118+
needs: [workflow-variables, versioning, validate-release]
119119
runs-on: ubuntu-latest
120120

121121
env:
@@ -138,7 +138,7 @@ jobs:
138138

139139
test:
140140
name: 'Run tests'
141-
needs: [build]
141+
needs: [build, validate-release]
142142
runs-on: ubuntu-latest
143143
steps:
144144
- name: 'Checkout ${{ github.head_ref || github.ref }}'
@@ -176,7 +176,7 @@ jobs:
176176

177177
pack:
178178
name: 'Package binaries'
179-
needs: [versioning, build]
179+
needs: [versioning, build, validate-release]
180180
runs-on: ubuntu-latest
181181
env:
182182
assembly-version: ${{ needs.versioning.outputs.assembly-version }}
@@ -214,7 +214,7 @@ jobs:
214214
215215
publish-package:
216216
name: 'Publish package'
217-
needs: [pack]
217+
needs: [pack, validate-release]
218218
env:
219219
package-artifact-name: ${{ needs.pack.outputs.package-artifact-name }}
220220
runs-on: ubuntu-latest
@@ -241,7 +241,7 @@ jobs:
241241

242242
release:
243243
name: 'Create release'
244-
needs: [publish-package]
244+
needs: [publish-package, validate-release]
245245
runs-on: ubuntu-latest
246246
steps:
247247
- name: 'Checkout ${{ github.head_ref || github.ref }}'

0 commit comments

Comments
 (0)