[feature request] support write byte[] to bytes_value instead of array_value in TagWriter #3350
This file contains hidden or 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: Prepare for a release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag-prefix: | |
| type: choice | |
| options: | |
| - core- | |
| - coreunstable- | |
| description: 'Release tag prefix' | |
| required: true | |
| version: | |
| type: string | |
| description: 'Release version' | |
| required: true | |
| pull_request: | |
| types: | |
| - closed | |
| issue_comment: | |
| types: | |
| - created | |
| permissions: | |
| contents: read | |
| jobs: | |
| automation: | |
| uses: ./.github/workflows/automation.yml | |
| secrets: | |
| OTELBOT_DOTNET_PRIVATE_KEY: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| prepare-release-pr: | |
| runs-on: ubuntu-24.04 | |
| needs: automation | |
| if: github.event_name == 'workflow_dispatch' && needs.automation.outputs.enabled | |
| steps: | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: otelbot-token | |
| with: | |
| app-id: ${{ vars.OTELBOT_DOTNET_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| - name: Check out code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Create GitHub Pull Request to prepare release | |
| shell: pwsh | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| BOT_USER_EMAIL: ${{ needs.automation.outputs.email }} | |
| BOT_USER_NAME: ${{ needs.automation.outputs.username }} | |
| COMMENT_USER_NAME: ${{ github.event.sender.login }} | |
| TAG_PREFIX: ${{ inputs.tag-prefix }} | |
| VERSION: ${{ inputs.version }} | |
| run: | | |
| Import-Module .\build\scripts\prepare-release.psm1 | |
| CreatePullRequestToUpdateChangelogsAndPublicApis ` | |
| -gitRepository ${env:GITHUB_REPOSITORY} ` | |
| -minVerTagPrefix ${env:TAG_PREFIX} ` | |
| -version ${env:VERSION} ` | |
| -requestedByUserName ${env:COMMENT_USER_NAME} ` | |
| -targetBranch ${env:GITHUB_REF_NAME} ` | |
| -gitUserName ${env:BOT_USER_NAME} ` | |
| -gitUserEmail ${env:BOT_USER_EMAIL} | |
| lock-pr-and-post-notice-to-create-release-tag: | |
| runs-on: ubuntu-24.04 | |
| needs: automation | |
| if: | | |
| github.event_name == 'pull_request' && | |
| github.event.action == 'closed' && | |
| github.event.pull_request.user.login == needs.automation.outputs.application-username && | |
| github.event.pull_request.merged == true && | |
| startsWith(github.event.pull_request.title, '[release] Prepare release ') && | |
| needs.automation.outputs.enabled | |
| steps: | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: otelbot-token | |
| with: | |
| app-id: ${{ vars.OTELBOT_DOTNET_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| - name: Check out code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Lock GitHub Pull Request to prepare release | |
| shell: pwsh | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| EXPECTED_PR_AUTHOR_USER_NAME: ${{ needs.automation.outputs.application-name }} | |
| ISSUE_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| Import-Module .\build\scripts\prepare-release.psm1 | |
| LockPullRequestAndPostNoticeToCreateReleaseTag ` | |
| -gitRepository ${env:GITHUB_REPOSITORY} ` | |
| -pullRequestNumber ${env:ISSUE_NUMBER} ` | |
| -expectedPrAuthorUserName ${env:EXPECTED_PR_AUTHOR_USER_NAME} | |
| create-release-tag-pr-post-notice: | |
| runs-on: ubuntu-24.04 | |
| needs: automation | |
| if: | | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| github.event.issue.locked == true && | |
| github.event.comment.user.login != needs.automation.outputs.application-username && | |
| contains(github.event.comment.body, '/CreateReleaseTag') && | |
| startsWith(github.event.issue.title, '[release] Prepare release ') && | |
| github.event.issue.pull_request.merged_at && | |
| needs.automation.outputs.enabled | |
| steps: | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: otelbot-token | |
| with: | |
| app-id: ${{ vars.OTELBOT_DOTNET_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| - name: Check out code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| # Note: By default GitHub only fetches 1 commit which fails the git tag operation below | |
| fetch-depth: 0 | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Create release tag | |
| id: create-tag | |
| shell: pwsh | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| BOT_USER_EMAIL: ${{ needs.automation.outputs.email }} | |
| BOT_USER_NAME: ${{ needs.automation.outputs.username }} | |
| EXPECTED_PR_AUTHOR_USER_NAME: ${{ needs.automation.outputs.application-name }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| run: | | |
| Import-Module .\build\scripts\prepare-release.psm1 | |
| CreateReleaseTagAndPostNoticeOnPullRequest ` | |
| -gitRepository ${env:GITHUB_REPOSITORY} ` | |
| -pullRequestNumber ${env:ISSUE_NUMBER} ` | |
| -expectedPrAuthorUserName ${env:EXPECTED_PR_AUTHOR_USER_NAME} ` | |
| -gitUserName ${env:BOT_USER_NAME} ` | |
| -gitUserEmail ${env:BOT_USER_EMAIL} | |
| update-changelog-release-dates-on-prepare-pr-post-notice: | |
| runs-on: ubuntu-24.04 | |
| needs: automation | |
| if: | | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| github.event.issue.state == 'open' && | |
| github.event.comment.user.login != needs.automation.outputs.application-username && | |
| contains(github.event.comment.body, '/UpdateReleaseDates') && | |
| startsWith(github.event.issue.title, '[release] Prepare release ') && | |
| github.event.issue.pull_request.merged_at == null && | |
| needs.automation.outputs.enabled | |
| steps: | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: otelbot-token | |
| with: | |
| app-id: ${{ vars.OTELBOT_DOTNET_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| - name: Check out code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| # Note: By default GitHub only fetches 1 commit which fails the git tag operation below | |
| fetch-depth: 0 | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Update release date | |
| shell: pwsh | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| BOT_USER_EMAIL: ${{ needs.automation.outputs.email }} | |
| BOT_USER_NAME: ${{ needs.automation.outputs.username }} | |
| EXPECTED_PR_AUTHOR_USER_NAME: ${{ needs.automation.outputs.application-name }} | |
| COMMENT_USER_NAME: ${{ github.event.comment.user.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| run: | | |
| Import-Module .\build\scripts\prepare-release.psm1 | |
| UpdateChangelogReleaseDatesAndPostNoticeOnPullRequest ` | |
| -gitRepository ${env:GITHUB_REPOSITORY} ` | |
| -pullRequestNumber ${env:ISSUE_NUMBER} ` | |
| -expectedPrAuthorUserName ${env:EXPECTED_PR_AUTHOR_USER_NAME} ` | |
| -commentUserName ${env:COMMENT_USER_NAME} ` | |
| -gitUserName ${env:BOT_USER_NAME} ` | |
| -gitUserEmail ${env:BOT_USER_EMAIL} | |
| update-releasenotes-on-prepare-pr-post-notice: | |
| runs-on: ubuntu-24.04 | |
| needs: automation | |
| if: | | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| github.event.issue.state == 'open' && | |
| github.event.comment.user.login != needs.automation.outputs.application-username && | |
| contains(github.event.comment.body, '/UpdateReleaseNotes') && | |
| startsWith(github.event.issue.title, '[release] Prepare release ') && | |
| github.event.issue.pull_request.merged_at == null && | |
| needs.automation.outputs.enabled | |
| steps: | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: otelbot-token | |
| with: | |
| app-id: ${{ vars.OTELBOT_DOTNET_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY }} | |
| - name: Check out code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| # Note: By default GitHub only fetches 1 commit which fails the git tag operation below | |
| fetch-depth: 0 | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Update release notes | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| BOT_USER_EMAIL: ${{ needs.automation.outputs.email }} | |
| BOT_USER_NAME: ${{ needs.automation.outputs.username }} | |
| EXPECTED_PR_AUTHOR_USER_NAME: ${{ needs.automation.outputs.application-name }} | |
| COMMENT_BODY: ${{ github.event.comment.body }} | |
| COMMENT_USER_NAME: ${{ github.event.comment.user.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| shell: pwsh | |
| run: | | |
| Import-Module .\build\scripts\prepare-release.psm1 | |
| UpdateReleaseNotesAndPostNoticeOnPullRequest ` | |
| -gitRepository ${env:GITHUB_REPOSITORY} ` | |
| -pullRequestNumber ${env:ISSUE_NUMBER} ` | |
| -expectedPrAuthorUserName ${env:EXPECTED_PR_AUTHOR_USER_NAME} ` | |
| -commentUserName ${env:COMMENT_USER_NAME} ` | |
| -commentBody $Env:COMMENT_BODY ` | |
| -gitUserName ${env:BOT_USER_NAME} ` | |
| -gitUserEmail ${env:BOT_USER_EMAIL} |