Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Action to update generated components with cron job #24

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

liamrathke
Copy link
Contributor

This PR adds a GitHub Action that should run once every 24 hours; it will pull vmware-tanzu/octant, run the command to automatically generate TypeScript components, and if the generated components differ from those previously generated, it will commit the newly regenerated components to this repo.

Relevant issues:

Testing changes:

This action is somewhat difficult to test; I ran into issues locally when trying to run the action within act, and eventually gave up and just tested the action on my fork.

If testing on a fork, please replace vmware-tanzu/octant on line 23 in update-components.yaml with a path to your Octant fork; changing the trigger from a cron job to a more replicable event (e.g. push) will be useful too.

Signed-off-by: Liam Rathke <liam.rathke@gmail.com>
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: 14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's safe to bump to 16 here since LTS is coming in a month and we've moved upstream CI already

signed-off-by: Liam Rathke <lrathke@vmware.com>
@wwitzel3 wwitzel3 merged commit 8b0f724 into vmware-archive:main Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants