Skip to content

Commit

Permalink
chore: test out setting variable to say build is for a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Aug 17, 2023
1 parent e788837 commit b684d68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/pipeline/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ stages:
value: $[variables['System.PullRequest.SourceBranch']]
- name: INDIVIDUAL_SOURCE
value: $[variables['Build.SourceBranchName']]
- name: IS_TAG
value: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/')]
- name: TARGET
value: $[variables['System.PullRequest.TargetBranch']]
steps:
- bash: |
echo $(IS_TAG)
# set the workspace variable at runtime (rather than build time) so that all the necessary variables are available, and we can use Python
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=bash#about-tasksetvariable
- bash: |
Expand Down

0 comments on commit b684d68

Please sign in to comment.