[project-base] [SSP-2146] cypress tests extra scenarios (#3052) #365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |