File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
name : Semantic release
11
- environment : main
12
11
runs-on : ubuntu-latest
13
12
steps :
14
13
- uses : actions/checkout@v4
30
29
HACKAGE_KEY : " ${{ secrets.HACKAGE_TOKEN }}"
31
30
32
31
with :
33
- ci : ${{ github.ref == 'refs/heads/main' }}
32
+ ci : ${{ github.ref == github.event.repository.default_branch }}
34
33
extra_plugins : |
35
34
conventional-changelog-conventionalcommits
36
35
semantic-release-mirror-version
39
38
- name : Semantic release output
40
39
run : |
41
40
echo ref: ${{ github.ref }}
42
- echo dry_run: ${{ github.ref != 'refs/heads/main' }}
41
+ echo dry_run: ${{ github.ref_name != github.event.repository.default_branch }}
43
42
echo published: ${{ steps.semantic.outputs.new_release_published }}
44
43
echo last_release: ${{ steps.semantic.outputs.last_release_version }}
45
44
echo new_version: ${{ steps.semantic.outputs.new_release_version }}
You can’t perform that action at this time.
0 commit comments