Skip to content

Commit f5d6f4f

Browse files
authored
Update mirror workflow to exclude upstream workflows
Install git-filter-repo and filter out workflows
1 parent e459597 commit f5d6f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/mirror.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
git clone https://codeberg.org/Calamares/calamares.git mirror
1818
cd mirror
1919
20-
# Remove upstream workflows so they are not pushed
21-
rm -rf .github/workflows
20+
pip install git-filter-repo
21+
git filter-repo --path .github/workflows --invert-paths
2222
2323
# Set GitHub as push target using Actions token
2424
git remote add github "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/teo/calamares.git"

0 commit comments

Comments
 (0)