GitHub Action to run git-pr-release
For example, here is a workflow to run git-pr-release
when push to develop.
name: Exec git-pr-release
on:
push:
branches:
- develop
jobs:
gitPrRelease:
name: git-pr-release
runs-on: ubuntu-latest
steps:
- name: git-pr-release
uses: tae124/git-pr-release-action@master
env:
GIT_PR_RELEASE_BRANCH_STAGING: develop
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_GIT_PR_RELEASE }}
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).