File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,8 +158,25 @@ jobs:
158158 # echo "Uploading archive ${archive} to release ${tag}"
159159 # gh release upload "${tag}" "${archive}"
160160 # echo "Archive uploaded successfully."
161+ create_git_tag :
162+ runs-on : ubuntu-latest
163+ permissions :
164+ # Required for creating and pushing git tags.
165+ contents : write
166+
167+ steps :
168+ - name : Checkout current commit
169+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170+
171+ - name : Create Git Tag
172+ run : |
173+ git config --local user.email "j2cl-github-bot@github.com"
174+ git config --local user.name "J2CL GitHub Bot"
175+ git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}"
176+ git push origin "${{ inputs.version }}"
161177
162178 release :
179+ needs : create_git_tag
163180 if : ${{ inputs.create_github_release }}
164181 uses : bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
165182 with :
You can’t perform that action at this time.
0 commit comments