Skip to content

[CI] Automatically merge HEAD of sycl branch into jobs #5281

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

Merged
merged 10 commits into from
Feb 5, 2022
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
17 changes: 16 additions & 1 deletion devops/actions/cached_checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
default: 1
cache_path:
description: 'Path to cache location for all repos'
default_branch:
description: 'Name of the default branch'
default: 'sycl'

runs:
using: 'composite'
Expand All @@ -36,4 +39,16 @@ runs:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
path: ${{ inputs.path }}
fetch-depth: ${{ inputs.fetch-depth }}
fetch-depth: 0
- name: Merge sycl HEAD into current branch
shell: bash
env:
GIT_ALTERNATE_OBJECT_DIRECTORIES: ${{ inputs.cache_path }}/${{ inputs.repository }}/.git/objects
DEFAULT_BRANCH: ${{ inputs.default_branch }}
run: |
cd ${{ inputs.path }}
git fetch origin $DEFAULT_BRANCH
# Set fake identity to fulfil git requirements
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git merge --no-ff --no-commit origin/$DEFAULT_BRANCH