Skip to content

Commit 0b48caf

Browse files
committed
ci: git user not set
1 parent 062aa5e commit 0b48caf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sync-tag.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,23 @@ jobs:
2323
latest_tag_name=$(wget -qO- -t1 -T2 "https://api.github.com/repos/tailscale/tailscale/releases/latest" | jq -r '.tag_name')
2424
if [ -z "$latest_tag_name" ]; then
2525
echo "fetch tag name failed"
26-
echo "Tagged=false" >> $GITHUB_OUTPUT
26+
echo "tagged=false" >> $GITHUB_OUTPUT
2727
exit 0
2828
fi
2929
latest_commit_hash=$(wget -qO- -t1 -T2 "https://api.github.com/repos/tailscale/tailscale/commits" | jq -r '.[0].sha')
3030
if [ -z "$latest_commit_hash" ]; then
3131
echo "fetch commit hash failed"
32-
echo "Tagged=false" >> $GITHUB_OUTPUT
32+
echo "tagged=false" >> $GITHUB_OUTPUT
3333
exit 0
3434
fi
3535
version="${latest_tag_name}-${latest_commit_hash:0:7}"
3636
if git rev-parse "refs/tags/$version" >/dev/null 2>&1; then
3737
echo "tag exists"
38-
echo "Tagged=false" >> $GITHUB_OUTPUT
38+
echo "tagged=false" >> $GITHUB_OUTPUT
3939
exit 0
4040
fi
41+
git config user.name "GitHub Actions"
42+
git config user.email "github-actions@users.noreply.github.com"
4143
git tag -a $version -m "release $version"
4244
echo "tagged=true" >> $GITHUB_OUTPUT
4345
echo "commit-hash=${latest_commit_hash}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)