Skip to content

Commit

Permalink
test(ci): use edited event to get a pull_request.title
Browse files Browse the repository at this point in the history
  • Loading branch information
masahiro331 committed Feb 8, 2022
1 parent c66fa94 commit 68a6521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test
on:
pull_request:
types: [edited, opened]
env:
GO_VERSION: "1.17"
jobs:
Expand All @@ -10,7 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Go pull request message linter
uses: masahiro331/go-commitlinter@0.1.0
uses: masahiro331/go-commitlinter@0.1.1
env:
PR: ${{ github.event.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TITLE: ${{ github.event.pull_request.title }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ runs:
tar xvfz go-commitlinter.tar.gz
mv go-commitlinter /usr/local/bin/
shell: bash
- run: gh pr view $PR | head -n 1 | cut -f 2 | go-commitlinter
- run: echo $TITLE | go-commitlinter
shell: bash

0 comments on commit 68a6521

Please sign in to comment.