Skip to content

Commit

Permalink
setup(ci): setup PR name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemkaKun authored Oct 28, 2024
1 parent 37ce270 commit cded844
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/validate_pr_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "PR name validation"

on:
pull_request:
types: ["opened", "edited", "reopened", "ready_for_review"]

env:
REGISTRY: "ghcr.io"

jobs:
validate-pr-name:
runs-on: "ubuntu-latest"
steps:
- name: "Login to Docker registry"
uses: "docker/login-action@v3"
with:
registry: "${{ env.REGISTRY }}"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"

- name: "Validate PR name"
run: "docker run --rm ${{ env.REGISTRY }}/articola-tools/pr-name-validator:latest
'${{ github.event.pull_request.title }}'"

0 comments on commit cded844

Please sign in to comment.