Skip to content

Commit 9b4aa5f

Browse files
committed
foo
1 parent ff63204 commit 9b4aa5f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release_common.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)