diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dc3c3de --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test + +on: + pull_request: + types: + - opened + - synchronize + - edited + +jobs: + print_title_of_pr: + runs-on: ubuntu-20.04 + env: + PR_TITLE: ${{ github.event.pull_request.title }} + steps: + - name: Print Title of PR + run: | + echo "${PR_TITLE}" + + - name: Print Title of PR2 + run: | + echo "::error::Hotfix PR title does not match any of the Original PR titles. Hotfix PR title: '${PR_TITLE}'" + + - name: Print Title of PR2 + run: | + echo '::error::Hotfix PR title does not match any of the Original PR titles. Hotfix PR title: '${PR_TITLE}''