Skip to content

Commit

Permalink
feat: adds support to run from pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Toolo committed May 30, 2023
1 parent c3b06c4 commit a1d13bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release-notes-preview/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: GitHub Action Release Notes Preview
description: GitHub Action that publishes a new release.
inputs:
checkout-ref:
required: false
description: |
The ref to checkout before running semantic-release. When running from a pull_request trigger,
this should be 'github.head_ref'.
default: ${{ github.ref }}
github-token:
required: true
description: GitHub token that can checkout the repository as well as create tags/releases against it. e.g. 'secrets.GITHUB_TOKEN'
Expand All @@ -13,6 +19,7 @@ runs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.checkout-ref }}
fetch-depth: 0
- name: Setup tools
uses: open-turo/action-setup-tools@v1
Expand Down

0 comments on commit a1d13bb

Please sign in to comment.