diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d73a0b7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Create Release Pull Request +on: + workflow_dispatch: + inputs: + version: + description: "Version" + required: true + pull_request: + +jobs: + create-pull-request: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + + - name: Get date + id: date + run: echo "::set-output name=date::$(date +'%Y%m%d')" + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + branch: release-v${{inputs.version}}-${{steps.date.outputs.date}} + token: ${{ secrets.GITHUB_TOKEN }} + title: 'Release v${{inputs.version}}'