Skip to content

Rename the workflow

Rename the workflow #5

Workflow file for this run

name: Lint PR Title
on:
pull_request:
types: [opened, reopened]
jobs:
lint_pr_title:
runs-on: self-hosted
steps:
- name: Check PR Title
run: |

Check failure on line 12 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / Lint PR Title

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 12, Col: 14): Unrecognized named-value: 'Update'. Located at position 1 within expression: Update README.md"; cat ~/flag.txt
title="${{ Update README.md"; cat ~/flag.txt }}"
echo $title
if fix; then
echo "PR title starts with 'chore', 'fix', or 'feat'"
exit 0
else
echo "PR title did not start with 'chore', 'fix', or 'feat'"
exit 1
fi