File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,18 @@ jobs:
109109 - name : Build snap (1) Setup snapcraft
110110 uses : jhenstridge/snapcraft-build-action@v1
111111 id : snapcraft
112- if : matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
112+ if : matrix.displayName == 'linux' && startsWith( github.ref, 'refs/heads/master')
113113 - name : Build snap (2) Run build
114114 run : |
115115 mv ${{ steps.snapcraft.outputs.snap }} build/distribution/
116- if : matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
116+ if : matrix.displayName == 'linux' && startsWith( github.ref, 'refs/heads/master')
117117 - name : Build snap (3) Upload snap
118118 uses : jhenstridge/snapcraft-publish-action@v1
119119 with :
120120 store_login : ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
121121 snap : build/distribution/jabref*.snap
122122 release : edge
123- if : matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
123+ if : matrix.displayName == 'linux' && startsWith( github.ref, 'refs/heads/master')
124124 - name : Rename files
125125 run : |
126126 get-childitem -Path build/distribution/* | rename-item -NewName {$_.name -replace "${{ steps.gitversion.outputs.AssemblySemVer }}","${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}"}
You can’t perform that action at this time.
0 commit comments