Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update CI workflows path to be current branch workflows file #30534

Merged
merged 6 commits into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
setup: true

orbs:
continuation: circleci/continuation@0.3.1
continuation: circleci/continuation@1.0.0

jobs:
verify-ci-should-run:
Expand Down Expand Up @@ -52,17 +52,9 @@ jobs:

echo "Skipping CI; branch in progress - $TRIGGER_INSTRUCTIONS"
cancel_build

- run:
name: Download .circleci/workflows.yaml
command: |
if [[ "$CIRCLE_BRANCH" == "pull/"* ]]; then
curl -o workflows.yml https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/develop/.circleci/workflows.yml
else
curl -o workflows.yml https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}/.circleci/workflows.yml
fi
- checkout
- continuation/continue:
configuration_path: workflows.yml
configuration_path: .circleci/workflows.yml

workflows:
# the setup-workflow workflow is always triggered.
Expand Down
Loading