Skip to content

Commit

Permalink
ci(PR): more docs for action message [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jan 16, 2024
1 parent f1f041b commit 4b17ef7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/actions/message/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ outputs:
description: "If enable cache."
check:
description: "If trigger step check."
macos:
description: "If enable macos."
```
### Skip CI
Expand Down Expand Up @@ -41,16 +43,9 @@ pull request:

```yaml
steps:
- name: Get Commit Message
id: commit-message
run: echo "message=$(git show -s --format=%s)"
- uses: ./.github/actions/message
with:
full-name: ${{ github.event.pull_request.head.repo.full_name }}
head-sha: ${{ github.event.pull_request.head.sha }}
issue: ${{ github.event.number }}
message: ${{ steps.commit-message.message }}
title: ${{ github.event.pull_request.title }}
token: ${{ secrets.GITHUB_TOKEN }}
```

## LICENSE
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/message/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ inputs:
token:
description: "The github token."
required: true
outputs:
build:
description: "If trigger step build."
cache:
description: "If enable cache."
check:
description: "If trigger step check."
macos:
description: "If enable macos."

runs:
using: "node20"
Expand Down

0 comments on commit 4b17ef7

Please sign in to comment.