Skip to content

Create GitHub Workflow to update generated files on schedule - #2

Open
ilovelinux wants to merge 1 commit into
nbfc-linux:mainfrom
ilovelinux:feat/generate-file-workflow
Open

ilovelinux wants to merge 1 commit into
nbfc-linux:mainfrom
ilovelinux:feat/generate-file-workflow

Conversation

@ilovelinux

Copy link
Copy Markdown

This PR creates a GitHub Action that periodically regenerates the auto-generated files and creates a PR when they are updated.

Note

This is what the generated PR will look like ilovelinux#3

How it works

It will run:

  • Each day at 00:00 UTC.
  • When triggered manually.

When there's an already open PR and the Action is re-run, that PR will be updated1. A second PR won't be opened.

Tip

If you uncomment the reviewers field, the action will ask for your review when the PR is created.

Permissions

Permissions have been applied as described in the peter-evans/create-pull-request documentation.

Important

Remember to allow GitHub Actions to create pull requests in the repository settings, as described here.

Fixes #1

Footnotes

  1. https://github.com/peter-evans/create-pull-request#action-behaviour

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

Successfully merging this pull request may close these issues.

Create a GitHub Workflow to auto-run generate.py perodically

1 participant