Skip to content

Commit

Permalink
fix: git remote syntax
Browse files Browse the repository at this point in the history
usage: git remote add [<options>] <name> <url>

    -f, --fetch           fetch the remote branches
    --tags                import all tags and associated objects when fetching
                          or do not fetch any tag at all (--no-tags)
    -t, --track <branch>  branch(es) to track
    -m, --master <branch>
                          master branch
    --mirror[=(push|fetch)]
                          set up remote as a mirror to push to or fetch from
  • Loading branch information
lcenchew authored Aug 16, 2020
1 parent c1c6c06 commit da53f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

cd "${GITHUB_WORKSPACE}"

git remote add -f "https://github.com/$1.git"
git remote add -f upstream "https://github.com/$1.git"
git branch ${GITHUB_REF}
git merge --ff-only upstream/${GITHUB_REF}
git push

0 comments on commit da53f4a

Please sign in to comment.