mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
GitHub Actions: Update mirror job
This commit is contained in:
parent
4e802980f2
commit
47676e05f6
6
.github/workflows/build-test.yml
vendored
6
.github/workflows/build-test.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
||||
|
||||
mirror:
|
||||
name: Code Samples Mirror
|
||||
if: github.ref == 'refs/heads/master' && github.repository == 'JetBrains/intellij-sdk-docs'
|
||||
if: github.ref == 'refs/heads/main' && github.repository == 'JetBrains/intellij-sdk-docs'
|
||||
needs: samples
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -105,6 +105,6 @@ jobs:
|
||||
- name: Prepare Mirror
|
||||
run: |
|
||||
git clone --bare git@github.com:JetBrains/intellij-sdk-docs.git .
|
||||
git branch | grep -v "master" | xargs git branch -D
|
||||
git filter-branch --prune-empty --subdirectory-filter code_samples master
|
||||
git branch | grep -v "main" | xargs git branch -D
|
||||
git filter-branch --prune-empty --subdirectory-filter code_samples main
|
||||
git push --mirror git@github.com:JetBrains/intellij-sdk-code-samples.git
|
||||
|
Loading…
x
Reference in New Issue
Block a user