Update README.MD #4
Workflow file for this run
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: Github Release | |
on: | |
pull_request: | |
types: [ opened, labeled, unlabeled ] | |
permissions: | |
contents: write | |
jobs: | |
validate-label: | |
name: Validate Label | |
runs-on: ubuntu-latest | |
steps: | |
- name: Exit if pull request does not have release label | |
if: contains(github.event.pull_request.labels.*.name, 'release') | |
run: exit -1 | |
release: | |
needs: validate-label | |
name: Prepare Github Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Create Github Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: github.event.pull_request.labels[0].name | |
generate_release_notes: true | |
prerelease: false |