@@ -233,7 +233,7 @@ jobs:
233233            docker manifest create ${t} --amend ${t}-amd64 --amend ${t}-arm64v8 
234234            docker manifest create ${{ env.GHCR_IMAGE_NAME }}:latest --amend ${t}-amd64 --amend ${t}-arm64v8 
235235          done 
236-          if : startsWith(github.ref, 'refs/tags/') && ! contains('-pre-', github.ref ) 
236+          if : startsWith(github.ref, 'refs/tags/') && ! contains(github.ref,  '-pre-') 
237237      #  Push various manifests
238238      - name : push-ghcr 
239239        run : | 
@@ -246,7 +246,7 @@ jobs:
246246          for t in `echo '${{ steps.meta-ghcr-tag.outputs.tags }}'`; do 
247247            docker manifest push ${t} 
248248          done 
249-          if : startsWith(github.ref, 'refs/tags/') && ! contains('-pre-', github.ref ) 
249+          if : startsWith(github.ref, 'refs/tags/') && ! contains(github.ref,  '-pre-') 
250250
251251      #  Now, create manifests for Docker Hub
252252
@@ -261,7 +261,7 @@ jobs:
261261            docker manifest create ${t} --amend ${t}-amd64 --amend ${t}-arm64v8 
262262            docker manifest create ${{ env.DOCKER_IMAGE_NAME }}:latest --amend ${t}-amd64 --amend ${t}-arm64v8 
263263          done 
264-          if : startsWith(github.ref, 'refs/tags/') && ! contains('-pre-', github.ref ) 
264+          if : startsWith(github.ref, 'refs/tags/') && ! contains(github.ref,  '-pre-') 
265265      - name : push-dockerhub 
266266        run : | 
267267          for t in `echo '${{ steps.meta-dockerhub.outputs.tags }}'`; do 
@@ -273,7 +273,7 @@ jobs:
273273          for t in `echo '${{ steps.meta-dockerhub-tag.outputs.tags }}'`; do 
274274            docker manifest push ${t} 
275275          done 
276-          if : startsWith(github.ref, 'refs/tags/') && ! contains('-pre-', github.ref ) 
276+          if : startsWith(github.ref, 'refs/tags/') && ! contains(github.ref,  '-pre-') 
277277
278278      #  Update Docker Hub from README
279279
@@ -302,7 +302,7 @@ jobs:
302302                generate_release_notes: true, 
303303                name: process.env.RELEASE_TAG, 
304304                owner: context.repo.owner, 
305-                 prerelease: ${{ (startsWith(github.ref, 'refs/tags/') && ! contains('-pre-', github.ref )) && true || false }}, 
305+                 prerelease: ${{ (startsWith(github.ref, 'refs/tags/') && ! contains(github.ref,  '-pre-')) && true || false }}, 
306306                repo: context.repo.repo, 
307307                tag_name: process.env.RELEASE_TAG, 
308308              }); 
0 commit comments