GitHub Action
git-pr-release
v1.4
Latest version
GitHub Action to run git-pr-release
For example, here is a workflow to run git-pr-release
when push to staging.
name: Create PR from staging to master
on:
push:
branches:
- staging
jobs:
gitPrRelease:
name: git-pr-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: git-pr-release
uses: bakunyo/git-pr-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
or see .github/workflows
of this repository.
Add GITHUB_TOKEN secret to make authenticated calls to the GitHub API.
Any environment variables defined by git-pr-release also can use on this action (GIT_PR_RELEASE_BRANCH_PRODUCTION
, GIT_PR_RELEASE_BRANCH_STAGING
etc).
git-pr-release
command supports some arguments. These can be specified by using args
input.
- name: git-pr-release
uses: bakunyo/git-pr-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '--squashed' # If you are using squash merge