@@ -23,35 +23,37 @@ 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
4446 echo "tag-name=${version}" >> $GITHUB_OUTPUT
4547
4648 - name : Push tags
47- if : ${{ steps.tag.tagged == ' true' }}
49+ if : ${{ steps.tag.tagged == true }}
4850 uses : ad-m/github-push-action@master
4951 with :
5052 branch : main
5153
5254 trigger-build :
5355 needs : sync
54- if : ${{ needs.sync.outputs.tagged == ' true' }}
56+ if : ${{ needs.sync.outputs.tagged == true }}
5557 uses : ./.github/workflows/release-derper.yaml
5658 with :
5759 ref : ${{ needs.sync.outputs.commit-hash }}
0 commit comments