File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments