diff --git a/ci/deploy.yml b/ci/deploy.yml index d429d6d..7da2495 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -32,4 +32,5 @@ steps: assets: 'espanso-*' addChangeLog: false repositoryName: ${{ parameters.github.repositoryName }} - isPreRelease: ${{ parameters.github.isPreRelease }} \ No newline at end of file + isPreRelease: ${{ parameters.github.isPreRelease }} + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) \ No newline at end of file diff --git a/ci/publish-homebrew.yml b/ci/publish-homebrew.yml index d5ea1cb..5936281 100644 --- a/ci/publish-homebrew.yml +++ b/ci/publish-homebrew.yml @@ -18,4 +18,5 @@ steps: git add -A git commit -m "Update to version: $VER" git push - displayName: "Publishing to Homebrew" \ No newline at end of file + displayName: "Publishing to Homebrew" + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) \ No newline at end of file diff --git a/ci/test.yml b/ci/test.yml index 13decb1..d76dd3d 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -2,6 +2,11 @@ parameters: rust_version: stable steps: + - script: | + echo Master check + displayName: Master branch check + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + - template: install-rust.yml - script: |