-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from nwb-extensions/rly-patch-1
Attempt git credentials fix
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,6 @@ jobs: | |
CI_COMMIT_USER: 'github-actions[bot]' | ||
CI_COMMIT_EMAIL: 'github-actions[bot]@users.noreply.github.com' | ||
CI_COMMIT_MESSAGE: '[bot] update records' | ||
CI_PUSH_REMOTE: [email protected]:$GITHUB_REPOSITORY.git | ||
CI_PUSH_BRANCH: 'main' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -40,12 +38,12 @@ jobs: | |
- name: Commit & Push to repository | ||
run: | | ||
git config user.name "${{ env.CI_COMMIT_USER }}" | ||
git config user.mail "${{ env.CI_COMMIT_EMAIL }}" | ||
git config user.email "${{ env.CI_COMMIT_EMAIL }}" | ||
if [[ `git diff data` ]] ; then | ||
git add data | ||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | ||
git push "${{ env.CI_PUSH_REMOTE }}" "HEAD:${{ env.CI_PUSH_BRANCH }}" | ||
git push | ||
else | ||
echo "No changes were found in data" | ||
exit 0 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.