Skip to content

Commit c887c7d

Browse files
authored
Push only to mage-os repos (#211)
1 parent e8da9c2 commit c887c7d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/push-release-tag.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ jobs:
3838
- run: |
3939
for working_copy in $(ls -d repositories/*/.git); do
4040
cd $(dirname $working_copy)
41-
echo Processing repository $(basename $(pwd))
42-
ORIG=$(git remote -v | grep push | awk '{print $2}')
43-
NEW=${ORIG/https:\/\/github.com/https:\/\/mage-os-ci:${{ env.github_pat }}@github.com}
44-
git push $NEW "${{ env.mageos_release }}"
41+
if git remote -v | grep -qE 'https://github.com/mage-os/'; then
42+
echo Processing repository $(basename $(pwd))
43+
ORIG=$(git remote -v | grep push | awk '{print $2}')
44+
NEW=${ORIG/https:\/\/github.com/https:\/\/mage-os-ci:${{ env.github_pat }}@github.com}
45+
git push $NEW "${{ env.mageos_release }}"
46+
fi
4547
cd -
4648
done
4749
name: "Push ${{ inputs.mageos_release }} to each origin for all repositories"

0 commit comments

Comments
 (0)