Skip to content

[Bug]: 404 - discussion category mismatch on >v.2.5.2 #786

@ramonbroox

Description

@ramonbroox

Pre-flight checks

  • I searched existing issues and did not find a duplicate
  • I reproduced this with the latest released version or current master
  • I included a reproducible example or a sanitized/redacted reproduction path if the original repository is private

action-gh-release version

v2.6.0

Runner operating system

windows-latest

Release target repository

No response

Reproduction repo, gist, or artifact

No response

Workflow snippet

- name: Release Mirror
      uses: softprops/action-gh-release@v2
      if: startsWith(github.ref, 'refs/tags/v')
      env:
        GITHUB_TOKEN: ${{ secrets.BINARIES_REPO_TOKEN }}
      with:
        repository: ******/ReleaseMirror
        name: Product ${{ steps.ghd.outputs.describe }}
        tag_name: Product-${{ steps.ghd.outputs.describe }}
        prerelease: ${{ env.IS_PRERELEASE == '1' }}
        body_path: changes.txt
        append_body: true
        files: |
          Product*.exe

Expected behavior

Up to v2.5.0 releases were created with no issue.

Actual behavior

👩‍🏭 Creating new GitHub release for tag ****
⚠️ GitHub release failed with status: 404
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"404"}
Skip retry - discussion category mismatch
👩‍🏭 Creating new GitHub release for tag ****
⚠️ GitHub release failed with status: 404
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"404"}
Skip retry - discussion category mismatch
Error: Not Found - https://docs.github.com/rest/releases/releases#create-a-release

Steps to reproduce

Normal use (see snippet).
Target repo has no discussions enabled.

Relevant logs

Run softprops/action-gh-release@v2
  with:
    repository: *****
    name: ***
    tag_name: ***
    prerelease: true
    body_path: changes.txt
    append_body: true
    files: ****.deb
           ****.exe
    overwrite_files: true
    token: ***
  env:
    pythonLocation: C:\hostedtoolcache\windows\Python\3.12.10\x64
    PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.12.10\x64/lib/pkgconfig
    Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.10\x64
    Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.10\x64
    Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.10\x64
    UV_TOOL_BIN_DIR: D:\a\_temp\uv-tool-bin-dir
    UV_TOOL_DIR: D:\a\_temp\uv-tool-dir
    UV_CACHE_DIR: D:\a\_temp\setup-uv-cache
    GITHUB_TOKEN: ***
👩‍🏭 Creating new GitHub release for tag ****
⚠️ GitHub release failed with status: 404
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"404"}
Skip retry - discussion category mismatch
👩‍🏭 Creating new GitHub release for tag ****
⚠️ GitHub release failed with status: 404
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"404"}
Skip retry - discussion category mismatch
Error: Not Found - https://docs.github.com/rest/releases/releases#create-a-release

Additional context

Used to mirror a local release to a secondary report, stopped working on jumping from v2.5.0 to v2.6.2.
Maybe caused by 569deb8? Related to #764
Target repo has no discussions enabled. Maybe just including it in the json makes (as null?) github REST api check for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions