Update README.md #4
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 New Stable Version (Push) | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create_pull_request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Check commit message for [stable] | |
id: check_commit_message | |
run: echo ::set-output name=contains_stable::$(if grep -q "\[stable\]" <<< "$(git log --format=%B -n 1)"; then echo true; else echo false; fi) | |
- name: Create Pull Request | |
if: steps.check_commit_message.outputs.contains_stable == 'true' | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: stable | |
base: main | |
title: Automated New Stable Version | |
body: This pull request was automatically created by the workflow and contains the latest stable version of the repository. |