From e85ae921e006e0e213c563a310d79c542fc2ef1f Mon Sep 17 00:00:00 2001 From: Ping-Lin Chang Date: Sun, 15 May 2022 14:15:30 +0100 Subject: [PATCH] ci: update GitHub Actions --- .github/semantic.yml | 2 -- .github/workflows/semantic.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) delete mode 100644 .github/semantic.yml create mode 100644 .github/workflows/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index 96f9233..0000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,2 +0,0 @@ -# Always validate the PR title AND all the commits -titleAndCommits: true diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml new file mode 100644 index 0000000..ad6df65 --- /dev/null +++ b/.github/workflows/semantic.yml @@ -0,0 +1,17 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}