Release new crate versions #33
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
# Copyright 2024 The Fuchsia Authors | |
# | |
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 | |
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT | |
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. | |
# This file may not be copied, modified, or distributed except according to | |
# those terms. | |
name: Release new crate versions | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Crate version' | |
required: true | |
branch: | |
description: 'Branch to update' | |
required: true | |
default: 'main' | |
permissions: read-all | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: Release new crate versions | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
persist-credentials: false | |
- name: Overwrite Cargo.toml files | |
run: ./ci/release_crate_version.sh ${{ github.event.inputs.version }} | |
- name: Submit PR | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
with: | |
commit-message: "Release ${{ github.event.inputs.version }}" | |
author: Google PR Creation Bot <[email protected]> | |
committer: Google PR Creation Bot <[email protected]> | |
title: "Release ${{ github.event.inputs.version }}" | |
branch: release-${{ github.event.inputs.version }} | |
push-to-fork: google-pr-creation-bot/zerocopy | |
token: ${{ secrets.GOOGLE_PR_CREATION_BOT_TOKEN }} |