diff --git a/.github/workflows/v4-sync.yml b/.github/workflows/v4-sync.yml new file mode 100644 index 000000000..a04938ec4 --- /dev/null +++ b/.github/workflows/v4-sync.yml @@ -0,0 +1,23 @@ +name: v4 sync + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: '4.x' + + - name: Rebase 4.x branch + run: | + # Set git user from the latest commit + git config user.name "$(git --no-pager log --format=format:'%an' -n 1)" + git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)" + git rebase origin/main + git push --force diff --git a/composer.json b/composer.json index f9ea7ac24..4b04c9fcb 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,7 @@ "minimum-stability": "dev", "require": { "ext-curl": "*", + "drupal/core": "^9.5", "drupal/admin_toolbar": "^3.0", "drupal/allowed_formats": "^2.0", "drupal/config_ignore": "^2.3",