Skip to content

[shopsys] pinned problematic versions (#3162) #364

[shopsys] pinned problematic versions (#3162)

[shopsys] pinned problematic versions (#3162) #364

on:
push:
branches:
- 'master'
- '[0-9]+.[0-9]+'
concurrency:
group: monorepo-split-${{ github.ref }}
cancel-in-progress: true
name: Monorepo split
jobs:
split-branch:
name: Split branch
runs-on: ubuntu-22.04
steps:
- name: GIT checkout branch - ${{ github.ref_name }}
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Prepare variables and files to be used for splitting
run: |
echo "REMOTE_TEMPLATE=https://${{ secrets.ACTIONS_GIT_PUSH_TOKEN }}@github.com/shopsys/" >> $GITHUB_ENV
- name: Install git-filter-repo
run: |
sudo apt-get update
sudo apt-get install -y git-filter-repo
- name: Split repositories
run: |
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
bash ./.github/monorepo/split-repositories.sh "${{ github.ref_name }}" "${REMOTE_TEMPLATE}"