<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch travis-ci
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/63d0a5807e18a58a463a702e0fa7c608c31adb94">https://github.com/macports/macports-base/commit/63d0a5807e18a58a463a702e0fa7c608c31adb94</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/travis-ci by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 63d0a580 ci: azure: Fix deployment condition
</span>63d0a580 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 63d0a5807e18a58a463a702e0fa7c608c31adb94
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Wed Dec 9 21:25:40 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> ci: azure: Fix deployment condition
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The source branch is in the Build.SourceBranch variable, which is not
</span><span style='display:block; white-space:pre;color:#404040;'> the same as variables.Build.SourceBranch - the former expects a variable
</span><span style='display:block; white-space:pre;color:#404040;'> named 'Build.SourceBranch', the latter expects 'Build' to be a dict that
</span><span style='display:block; white-space:pre;color:#404040;'> contains the key 'SourceBranch'.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Apparently the former is the correct approach, and the latter just
</span><span style='display:block; white-space:pre;color:#404040;'> returns null.
</span>---
.github/azure-workflows/main.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/.github/azure-workflows/main.yml b/.github/azure-workflows/main.yml
</span><span style='display:block; white-space:pre;color:#808080;'>index bafc0469..1b9ceb2c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/.github/azure-workflows/main.yml
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/.github/azure-workflows/main.yml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,7 +54,7 @@ jobs:
</span> --exclude '/opt/local/var/macports/sip-workaround/?*' \
-cjf "MacPorts.tar.bz2" \
/opt/local
<span style='display:block; white-space:pre;background:#ffe0e0;'>- condition: and(succeeded(), or(eq(variables.Build.SourceBranch, 'refs/heads/travis-ci'), startsWith(variables.Build.SourceBranch, 'refs/tags/v')))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/travis-ci'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
</span> displayName: "Prepare Deployment"
- bash: |
set -eu
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -82,5 +82,5 @@ jobs:
</span> env:
user: "macports-ci-env"
pass: $(BINTRAY_API_TOKEN)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- condition: and(succeeded(), or(eq(variables.Build.SourceBranch, 'refs/heads/travis-ci'), startsWith(variables.Build.SourceBranch, 'refs/tags/v')))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/travis-ci'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
</span> displayName: "Deploy to bintray"
</pre><pre style='margin:0'>
</pre>