diff --git a/workflow-templates/create-release-pr.yml b/workflow-templates/create-release-pr.yml index 8bfd1be..e1a570a 100644 --- a/workflow-templates/create-release-pr.yml +++ b/workflow-templates/create-release-pr.yml @@ -1,19 +1,29 @@ name: Create Release Pull Request -on: [create] +on: + workflow_dispatch: + inputs: + release-version: + description: 'A specific version to bump to.' + required: true jobs: - release_pr: - if: ${{startsWith(github.ref, 'refs/heads/release-v')}} + release-pr: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + # This is to guarantee that the most recent tag is fetched. + # This can be configured to a more reasonable value by consumers. + fetch-depth: 0 - name: Get Node.js version id: nvm run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - uses: actions/setup-node@v2 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - - uses: MetaMask/action-create-release-pr@0.0.7 + - uses: MetaMask/action-create-release-pr@v0.0.16 + with: + release-version: ${{ github.event.inputs.release-version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}