Skip to content

Commit

Permalink
when unless syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JComins000 committed Oct 29, 2024
1 parent 333ff1e commit 8543868
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2698,17 +2698,27 @@ jobs:
steps:
- checkout
- unless:
condition: << parameters.executor-name >> == "win/default"
condition:
equal: [ << parameters.executor-name >>, "win/default" ]
steps:
- run:
name: Install git
command: |
apt update
apt install -y git
- run:
name: Set VERSION environment variable
command: |
echo "export VERSION=$(cd ~/project && ./version.sh)" >> $BASH_ENV
- run:
name: Set VERSION environment variable
command: |
echo "export VERSION=$(cd ~/project && ./version.sh)" >> $BASH_ENV
- when:
condition:
equal: [ << parameters.executor-name >>, "win/default" ]
steps:
- run:
name: Set VERSION environment variable
command: |
$version = & ~/project/version.sh
[System.Environment]::SetEnvironmentVariable('VERSION', $version, [System.EnvironmentVariableTarget]::Process)
- python-report
# Running the pip executable causes an error with the win/default executor for some reason.
- run: python -m pip install --upgrade --user pip
Expand Down

0 comments on commit 8543868

Please sign in to comment.