Merge pull request #228 from elastic/updatecli_b359520e8e70397c540bf3… #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Creates a new GitHub release if the version in .version changed in the main branch. | |
name: create-tag | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .version | |
permissions: | |
contents: write | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create release | |
run: | | |
APM_AGENT_JAVA_VERSION="v$(cat .version)" | |
gh release create "${APM_AGENT_JAVA_VERSION}" \ | |
--title="${APM_AGENT_JAVA_VERSION}" \ | |
--generate-notes | |
env: | |
GH_TOKEN: ${{ github.token }} | |