diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1741a4d72..04392ff36 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -74,7 +74,7 @@ jobs: deploy-prod: runs-on: ubuntu-latest - if: startsWith(github.event.head_commit.message, 'chore') && endsWith(github.event.head_commit.message, 'version release') + if: contains(github.event.workflow_run.head_commit.message, 'version release') needs: [ build ] steps: - uses: actions/download-artifact@v3 @@ -101,7 +101,7 @@ jobs: ProxyJump bastion - name: Check if artifact exists - run: ssh learnweb test -f "${{ secrets.DEPLOY_PATH }}/ROOT##${{ needs.build.outputs.version }}.war" && exit 1 + run: '! ssh learnweb test -f '${{ secrets.DEPLOY_PATH }}/ROOT##${{ needs.build.outputs.version }}.war' || false" - name: Copy artifact to server run: rsync -avzh --ignore-existing ROOT##*.war learnweb:${{ secrets.DEPLOY_PATH }}/ diff --git a/pom.xml b/pom.xml index cc089d95a..696553c4b 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ de.l3s learnweb - 3.21.01 + 3.22.00 war Learnweb