Skip to content

Commit fd3cc92

Browse files
korniltsevaleks-p
authored andcommitted
chore: redirect stderr of git commands with gh token to /dev/null for consistency (#4167)
1 parent 9ea1169 commit fd3cc92

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: echo "PYROSCOPE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
7777
- name: Update homebrew formulas
7878
run: |
79-
git config --global url."https://x-access-token:$(echo "${HOMEBREW_GITHUB_TOKEN}" | xargs)@github.com/pyroscope-io/homebrew-brew".insteadOf "https://github.com/pyroscope-io/homebrew-brew"
79+
git config --global url."https://x-access-token:$(echo "${HOMEBREW_GITHUB_TOKEN}" | xargs)@github.com/pyroscope-io/homebrew-brew".insteadOf "https://github.com/pyroscope-io/homebrew-brew" 2> /dev/null
8080
git config --global user.email "[email protected]"
8181
git config --global user.name "Pyroscope Bot <[email protected]>"
8282
git clone https://github.com/pyroscope-io/homebrew-brew ../homebrew-brew

.github/workflows_disabled/update-contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
git add README.md
2727
git commit -m 'docs: updates the list of contributors in README'
2828
gh auth status
29-
git push --force https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
29+
git push --force https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main 2> /dev/null
3030
fi
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}

Makefile.examples

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tools/update_examples_pr:
1212
git checkout -b gh_bot_examples_update
1313
git add .
1414
git commit -m "chore(examples): update examples"
15-
git push -f https://x-access-token:$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git gh_bot_examples_update
15+
git push -f https://x-access-token:$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git gh_bot_examples_update 2> /dev/null
1616
gh pr create --head gh_bot_examples_update --title "chore(examples): update examples" --body "make tools/update_examples" --repo $(GITHUB_REPOSITORY) || \
1717
gh pr edit gh_bot_examples_update --title "chore(examples): update examples" --body "make tools/update_examples" --repo $(GITHUB_REPOSITORY)
1818

0 commit comments

Comments
 (0)