Skip to content

Commit 300d591

Browse files
committed
automatic tagging
1 parent 2a466d1 commit 300d591

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/release_central.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
needs:
4545
- validate-version
4646
steps:
47-
- id: buildkite-run
47+
- name: Start buildkite run
48+
id: buildkite-run
4849
uses: elastic/oblt-actions/buildkite/run@v1
4950
with:
5051
pipeline: "elasticsearch-java-release"
@@ -54,3 +55,20 @@ jobs:
5455
env-vars: |
5556
DRY_RUN=${{ inputs.dry_run }}
5657
VERSION=${{ inputs.version }}
58+
59+
- name: Fetch ephemeral GitHub token
60+
id: fetch-ephemeral-token
61+
uses: elastic/ci-gh-actions/[email protected]
62+
with:
63+
vault-instance: "ci-prod"
64+
65+
- name: Tag branch ${{ inputs.branch }} with release ${{ inputs.version }}
66+
uses: actions/checkout@v4
67+
with:
68+
repository: elastic/elasticsearch-java
69+
token: ${{ steps.fetch-ephemeral-token.outputs.token }}
70+
ref: ${{ inputs.branch }}
71+
path: elasticsearch-java
72+
run: |
73+
git tag v${{ inputs.version }}
74+
git push origin v${{ inputs.version }}

0 commit comments

Comments
 (0)