Skip to content

Commit

Permalink
Propagate credentials to submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkovtsev authored Mar 18, 2024
1 parent f1678e4 commit ec55ba1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ runs:
pip install --no-cache-dir bump2version
git remote add ${{ inputs.login }} https://${{ inputs.login }}:${{ inputs.token }}@github.com/$GITHUB_REPOSITORY
git pull --no-edit ${{ inputs.login }} $BRANCH
git config --global url."https://${{ inputs.login }}:${{ inputs.token }}@github.com/".insteadOf "https://github.com/"
# merge done by git pull does not update submodules changed in $BRANCH
git submodule update --init --recursive
git config --global --remove-section url
git diff
for file in ${{ inputs.files }}; do ~/.local/bin/bumpversion --allow-dirty --current-version ${{ inputs.current_version }} ${{ inputs.part }} $file; done
git diff
Expand Down

0 comments on commit ec55ba1

Please sign in to comment.