Create release #2
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
name: Create release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to create' | |
required: true | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Check version in tpay.php | |
run: if [ $(grep ${{ github.event.inputs.version }} tpay.php -c) != 2 ]; then exit 1; fi | |
- name: Check Changelog | |
run: if [ $(grep ${{ github.event.inputs.version }} CHANGELOG.md -c) != 1 ]; then exit 1; fi | |
- name: Create Github release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ github.event.inputs.version }} | |
name: "v${{ github.event.inputs.version }}" | |
generateReleaseNotes: true | |