Skip to content

Setting up date / date pattern manually #57

@backdround

Description

@backdround

I've noticed that there is an almost empty commit after any changes that aren't related to documentation:
image
this commit

It bothers me a little (I don't like to produce empty commits), and I see possible solutions:

  • allow a user to set a date manually
  • allow a user to set a date-pattern manually

Hypothetical github-actions' usage with the date:

      - name: Generate date
        id: generate_date
        run: echo "date=$(date +%Y)" >> "$GITHUB_OUTPUT"

      - name: panvimdoc
        uses: kdheepak/panvimdoc@main
        with:
          vimdoc: improved-search.nvim
          date: ${{ steps.generate_date.outputs.date }}

Hypothetical github-actions' usage with the date-pattern:

      - name: panvimdoc
        uses: kdheepak/panvimdoc@main
        with:
          vimdoc: improved-search.nvim
          date-pattern: "%Y"

I think date-pattern seems easier to use.

I would make a PR if you say it makes sense to implement any of the things.

By the way, thank you for the great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions