Skip to content

Release 0.3.1

Release 0.3.1 #9

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Create release branch
on:
issues:
types: [labeled]
permissions:
contents: read
issues: write
jobs:
branch:
name: Create maintenance branch
if: github.event.label.name == 'release:branch'
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GH_TOKEN: ${{ github.token }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
RELEASE_ACTOR: ${{ github.event.sender.login }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: Authorize release actor
run: bash -c 'source .github/scripts/release-common.sh; require_maintainer'
- name: Create release app token
id: release-app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: ${{ github.event.repository.name }}
permission-contents: write
- name: Create branch
env:
PUSH_TOKEN: ${{ steps.release-app-token.outputs.token }}
run: |
set -o pipefail
bash .github/scripts/create-release-branch.sh 2>&1 | tee "${RUNNER_TEMP}/release-branch.log"
- name: Comment on failure
if: failure()
env:
PUSH_TOKEN: ${{ steps.release-app-token.outputs.token }}
run: bash .github/scripts/comment-issue-failure.sh "${RUNNER_TEMP}/release-branch.log" "Create release branch"