Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

git-pr-release

v1.3

git-pr-release

check-square

git-pr-release

Run git-pr-release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: git-pr-release

uses: bakunyo/git-pr-release-action@v1.3

Learn more about this action in bakunyo/git-pr-release-action

Choose a version

git-pr-release-action

GitHub Action to run git-pr-release

Usage

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.

Environment variables

GITHUB_TOKEN (required)

Add GITHUB_TOKEN secret to make authenticated calls to the GitHub API.

Other optional environment variables

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).