Skip to content

Commit

Permalink
TASK: Fetch target branch and use it as saucelabs tag
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Sep 19, 2024
1 parent a48f01c commit 5000f74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ aliases:
paths:
- .

orbs:
gh: circleci/[email protected]

jobs:
checkout:
docker:
Expand Down Expand Up @@ -92,6 +95,12 @@ jobs:
- attach_workspace: *attach_workspace
- restore_cache: *restore_app_cache

- gh/setup
- run:
name: Define target branch
command: |
TARGET_BRANCH=$(gh pr view $CIRCLE_PULL_REQUEST --json baseRefName --jq '.baseRefName')
echo "Target Branch: $TARGET_BRANCH"
- run:
name: Install Sauce Connect
command: |
Expand Down
3 changes: 1 addition & 2 deletions .sauce/config1Dimension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ sauce:
metadata:
tags:
- e2e
- release team
- other tag
- $TARGET_BRANCH
build: Release $CI_COMMIT_SHORT_SHA
tunnel:
name: "circleci-tunnel"
Expand Down
3 changes: 1 addition & 2 deletions .sauce/config2Dimension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ sauce:
metadata:
tags:
- e2e
- release team
- other tag
- $TARGET_BRANCH
build: Release $CI_COMMIT_SHORT_SHA
tunnel:
name: "circleci-tunnel"
Expand Down

0 comments on commit 5000f74

Please sign in to comment.