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

[CI] Improve devops/actions/cached_checkout #9831

Merged
merged 1 commit into from
Jun 13, 2023
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
11 changes: 10 additions & 1 deletion devops/actions/cached_checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
default_branch:
description: 'Name of the default branch'
default: 'sycl'
merge:
description: 'Merge default branch after the checkout'
default: true

runs:
using: 'composite'
Expand All @@ -41,10 +44,16 @@ runs:
ref: ${{ inputs.ref }}
path: ${{ inputs.path }}
fetch-depth: 0
- name: Merge sycl HEAD into current branch
- name: Setup alternates
shell: bash
env:
GIT_ALTERNATE_OBJECT_DIRECTORIES: ${{ inputs.cache_path }}/${{ inputs.repository }}/.git/objects
run: |
echo $GIT_ALTERNATE_OBJECT_DIRECTORIES > ${{ inputs.path }}/.git/objects/info/alternates
- name: Merge sycl HEAD into current branch
shell: bash
if: ${{ inputs.merge == 'true' }}
env:
DEFAULT_BRANCH: ${{ inputs.default_branch }}
run: |
cd ${{ inputs.path }}
Expand Down