Categorygithub.com/thijsvtol/create-environments
repositorypackage
0.0.0-20211224131516-bf102f429eb5
Repository: https://github.com/thijsvtol/create-environments.git
Documentation: pkg.go.dev

# README

Create environments for repositories

Build Integration Test

Usage

Create a workflow file in your .github/workflows/ directory with the following contents:

Example

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Create environments
        uses: thijsvtol/create-environments@main
        with:
          token: ${{ secrets.GHP }}
          repo: ${{ github.repository }}
          environments: test,prod
          required_reviewers: your-username
          wait_time: 5
          protected_branches_only: true

Inputs

inputrequiredtypedefault
tokentrueaccess token-
repotruestring-
environmentstruestring sepperated by ,-
required_reviewersfalsestring sepperated by ,-
wait_timefalseint0
protected_branches_onlyfalsebooleanfalse

Note1: token requires the repo scope Note2: required_reviewers can be a user or team (max 6 allowed)