Skip to content

Commit

Permalink
feat: Add defaults for github args.
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
joberstein committed Mar 5, 2023
1 parent ce4c24e commit 6450ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- name: Validate Commits
uses: ./
with:
base_ref: ${{ github.base_ref }}
head_ref: ${{ github.head_ref }}
target_ref: ${{ github.sha }}
extra_config: "@joberstein12/commitlint-config"

- name: Set default git branch
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ runs:
inputs:
base_ref:
description: The source of pull request that triggered this workflow (required for pull requests).
default: ${{ github.base_ref }}

head_ref:
description: The destination of the pull request that triggered this workflow (required for pull requests).
default: ${{ github.head_ref }}

target_ref:
description: The commit sha of the event that triggered this workflow (required for push).
default: ${{ github.sha }}

extra_config:
description: A newline-separated list of commitlint-config npm packages to install.

0 comments on commit 6450ba8

Please sign in to comment.