Skip to content

Commit d41ad89

Browse files
github-actions[bot]petesramekPete Sramekdependabot[bot]
authored
Promote develop/1.0 to preview/1.0 (#76)
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 bb0d338 commit d41ad89

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: 'Release'
22

33
on:
4-
pull_request_target:
5-
types: [closed]
4+
push:
65
branches:
76
- 'preview/**'
87
- 'release/**'
@@ -33,20 +32,15 @@ jobs:
3332
runs-on: ubuntu-latest
3433

3534
outputs:
36-
is-release: ${{ startsWith(github.base_ref, 'release') }}
37-
is-preview: ${{ startsWith(github.base_ref, 'preview') }}
35+
is-release: ${{ startsWith(github.ref, 'release') }}
36+
is-preview: ${{ startsWith(github.ref, 'preview') }}
3837

3938
steps:
40-
- name: ''
41-
run: |
42-
echo 'github.ref ${{ github.ref}}'
43-
echo 'github.head_ref ${{ github.head_ref}}'
44-
echo 'github.base_ref ${{ github.base_ref}}'
4539
- name: 'Set workflow variables'
4640
id: github
4741
run: |
48-
echo "is-release:${{ startsWith(github.base_ref, 'release') }}"
49-
echo "is-preview:${{ startsWith(github.base_ref, 'preview') }}"
42+
echo "is-release:${{ startsWith(github.ref, 'release') }}"
43+
echo "is-preview:${{ startsWith(github.ref, 'preview') }}"
5044
5145
validate-release:
5246
name: 'Validate release'
@@ -85,7 +79,7 @@ jobs:
8579
id: extract-version
8680
uses: './.github/actions/versioning/extract-version'
8781
with:
88-
branch-name: ${{ github.base_ref }}
82+
branch-name: ${{ github.ref }}
8983
- name: 'Create build number'
9084
shell: bash
9185
id: create-build-number
@@ -105,7 +99,7 @@ jobs:
10599
pre_release_tag='preview'
106100
echo "pre-release-tag=$pre_release_tag" >> $GITHUB_OUTPUT
107101
else
108-
pre_release_tag=$(echo ${{ github.base_ref }} | tr '/' '-' | tr '.' '-'| tr '_' '-')
102+
pre_release_tag=$(echo ${{ github.ref }} | tr '/' '-' | tr '.' '-'| tr '_' '-')
109103
echo "pre-release-tag=$pre_release_tag" >> $GITHUB_OUTPUT
110104
fi
111105
- name: 'Format version'
@@ -194,8 +188,6 @@ jobs:
194188
steps:
195189
- name: 'Checkout ${{ github.base_ref }}'
196190
uses: actions/checkout@v5
197-
with:
198-
ref: '${{ github.base_ref }}'
199191

200192
- name: Setup .NET
201193
uses: actions/setup-dotnet@v5

0 commit comments

Comments
 (0)