Skip to content

Commit 6525e8e

Browse files
authored
fix(ci): Set git identity in prior step (#266)
1 parent 6a76b88 commit 6525e8e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Diff for: .github/workflows/build.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,20 @@ jobs:
3939
with:
4040
fetch-depth: 0
4141

42+
- name: Set git user to getsentry-bot
43+
if: github.ref == 'refs/heads/master'
44+
run: |
45+
echo "GIT_COMMITTER_NAME=getsentry-bot" >> $GITHUB_ENV;
46+
echo "GIT_AUTHOR_NAME=getsentry-bot" >> $GITHUB_ENV;
47+
echo "[email protected]" >> $GITHUB_ENV;
48+
4249
- name: Evaluate docker tag
4350
run: |
4451
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
4552
echo "DOCKER_TAG=master" >> $GITHUB_ENV
4653
yarn set-docker-tag master
4754
4855
if ! git diff --quiet action.yml; then
49-
echo "GIT_COMMITTER_NAME=getsentry-bot" >> $GITHUB_ENV;
50-
echo "GIT_AUTHOR_NAME=getsentry-bot" >> $GITHUB_ENV;
51-
echo "[email protected]" >> $GITHUB_ENV;
52-
5356
git add action.yml
5457
SKIP=lint,format,set-docker-tag-from-branch git commit -m "chore: Set docker tag for master [skip-ci]"
5558
git push

Diff for: action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ runs:
8484
INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }}
8585
INPUT_DISABLE_TELEMETRY: ${{ inputs.disable_telemetry }}
8686
INPUT_DISABLE_SAFE_DIRECTORY: ${{ inputs.disable_safe_directory }}
87-
uses: docker://ghcr.io/getsentry/action-release-image:ab-hybrid-action
87+
uses: docker://ghcr.io/getsentry/action-release-image:ab-set-git-identity
8888

8989
# For actions running on macos or windows runners, we use a composite
9090
# action approach which allows us to install the arch specific sentry-cli

0 commit comments

Comments
 (0)