From b023fe95a8a66a6bdb088e17f2a970febb2fbce1 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 13 Dec 2023 17:06:59 +0800 Subject: [PATCH] feat: manual-release (#3184) --- .github/workflows/manual-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/manual-release.yml diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 000000000..24b315fed --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -0,0 +1,27 @@ +name: manual-release +on: + workflow_dispatch: + inputs: + pr_number: + description: 'Please enter a pull request number' + required: true +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - run: gh pr checkout ${{ inputs.pr_number }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Commit files + run: | + yarn install + yarn version:alpha -y + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -a -m "Add changes" + - name: Push changes + uses: ad-m/github-push-action@master + with: + branch: ${{ github.head_ref }} \ No newline at end of file