Skip to content

Commit f94636e

Browse files
committed
Fixed legacy build.
1 parent 28827c6 commit f94636e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/legacy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: Legacy Build
22

33
on:
4+
workflow_dispatch: ~
5+
46
push:
5-
branches: [ legacy ]
7+
branches:
8+
- legacy
9+
tags:
10+
- 1.**
611

712
pull_request:
8-
branches: [ legacy ]
13+
branches:
14+
- legacy
915

1016
jobs:
1117
build:
@@ -40,6 +46,7 @@ jobs:
4046
run: composer run-script test
4147

4248
release:
49+
if: startsWith(github.ref, 'refs/tags/1')
4350
runs-on: ubuntu-latest
4451
needs: [build]
4552
steps:
@@ -54,7 +61,6 @@ jobs:
5461

5562
- name: Release
5663
uses: softprops/action-gh-release@v1
57-
if: startsWith(github.ref, 'refs/tags/')
5864
with:
5965
generate_release_notes: true
6066
files: gitlist-${{ github.ref_name }}.zip

0 commit comments

Comments
 (0)