Merge pull request #135 from embrace-io/docs-0ms-spans #124
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
name: Draft Release | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
next-release: | |
permissions: | |
contents: write | |
pull-requests: read | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate next version | |
id: calver | |
run: | | |
today=$(date +%Y%m%d) | |
release=1 | |
while [ ! -z $(git tag -l ${today}.${release}) ]; do | |
release=$((release+1)) | |
done | |
next_version="${today}.${release}" | |
echo "version=${next_version}" >> $GITHUB_OUTPUT | |
- uses: embrace-io/release-drafter@v6 | |
with: | |
config-name: release-drafter.yml | |
disable-autolabeler: true | |
name: ${{ steps.calver.outputs.version }} | |
tag: ${{ steps.calver.outputs.version }} | |
version: ${{ steps.calver.outputs.version }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |