Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow_dispatch #105

Open
Jhon-Mosk opened this issue Dec 28, 2023 · 0 comments
Open

workflow_dispatch #105

Jhon-Mosk opened this issue Dec 28, 2023 · 0 comments

Comments

@Jhon-Mosk
Copy link

Describe the bug

When I try to run an action manually, I end up with an error.
image
I tried to introduce different options: v1.0.0; 0.0.0; release v1.0.0; release_version v1.0.0.

Your Environment

**Workflow Run URL **
repository is private

name: Changelog CI

on:
  pull_request:
    types: [opened]

  # Optionally you can use `workflow_dispatch` to run Changelog CI Manually
  workflow_dispatch:
    inputs:
      release_version:
        description: "Set Release Version"
        required: true

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      # Checks-out your repository
      - uses: actions/checkout@v4
      # https://github.com/marketplace/actions/changelog-ci
      - name: Run Changelog CI
        uses: saadmk11/changelog-ci@v1.1.2
        with:
          config_file: .github/workflows/changelog-config.json

Contents of Changelog-CI Configuration File (If Applicable):

{
  "changelog_type": "commit_message",
  "header_prefix": "Version:",
  "commit_changelog": true,
  "comment_changelog": true,
  "include_unlabeled_changes": true,
  "unlabeled_group_title": "Unlabeled Changes",
  "exclude_labels": ["bot", "dependabot", "ci"],
  "group_config": [
    {
      "title": "Bug Fixes",
      "labels": ["bug", "bugfix"]
    },
    {
      "title": "Code Improvements",
      "labels": ["improvements", "enhancement"]
    },
    {
      "title": "New Features",
      "labels": ["feature"]
    },
    {
      "title": "Documentation Updates",
      "labels": ["docs", "documentation", "doc"]
    }
  ]
}

Expected behavior

I expect that when I manually run the action, it will create a changelog with all the commits and pull requests that are in the main branch from the previous release with the version that I specified.

Actual behavior

Error: release_version input must be provided to generate Changelog. Please Check the Documentation for more details. Aborting Changelog Generation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant