name: Automation - Release Branch on: push: tags: # Trigger on beta version tags (0.x.x series) to create release branch # This pattern matches: v0.{minor}.{patch} for new releases and bugfix releases - 'v0.[0-9]+.[0-9]+' - 'v0.[0-9]+.[0-9]+-*' # Also support release candidates if needed permissions: contents: read jobs: release-branch: runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout repository uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: fetch-depth: 0 - name: Setup Go uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 with: go-version: oldstable cache: false - name: Cache Go id: go-cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: | ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }} - name: Setup Git config run: | git config --global user.name "otelbot" git config --global user.email "197425009+otelbot@users.noreply.github.com" - name: Run release-branch.sh run: | ./.github/workflows/scripts/release-branch.sh env: UPSTREAM_REMOTE_NAME: "origin" MAIN_BRANCH_NAME: "main" GITHUB_REF: ${{ github.ref }}