File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments