Skip to content

[BUG]: Unable to create a github repos' environment #329

@chrisdemers

Description

@chrisdemers

What happened?

Hi,

I'm trying to create a new environment for a repository but always get a 404, the documentation do not present exemple on how to set nested json object as input parameters. Here is my step:

  - name: Create Test environment
    uses: octokit/request-action@v2.4.0
    with:
      route: PUT /repos/{owner}/{repo}/environments/{environment_name}
      owner: ${{ github.repository_owner }}
      repo: ${{ github.repository }}
      environment_name: Test
      deployment_branch_policy: |
          protected_branches: false
          custom_branch_policies: true 
      mediaType: |
        format: json
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Thank you, probably not a bug, but lack of documentation on how to proceed.

Versions

v2.4.0

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions