Commit ecf822e 1 parent 29ed8fe commit ecf822e Copy full SHA for ecf822e
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,18 @@ jobs:
109
109
- name : Build snap (1) Setup snapcraft
110
110
uses : jhenstridge/snapcraft-build-action@v1
111
111
id : snapcraft
112
- if : matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
112
+ if : matrix.displayName == 'linux' && startsWith( github.ref, 'refs/heads/master')
113
113
- name : Build snap (2) Run build
114
114
run : |
115
115
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')
117
117
- name : Build snap (3) Upload snap
118
118
uses : jhenstridge/snapcraft-publish-action@v1
119
119
with :
120
120
store_login : ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
121
121
snap : build/distribution/jabref*.snap
122
122
release : edge
123
- if : matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
123
+ if : matrix.displayName == 'linux' && startsWith( github.ref, 'refs/heads/master')
124
124
- name : Rename files
125
125
run : |
126
126
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