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

feat(refresh-coda-cache workflow): add workflow. #356

Conversation

jrhender
Copy link
Collaborator

@jrhender jrhender commented Feb 4, 2024

Adds a new workflow that can be triggered manually to refresh cached data. Based off of https://github.com/StampyAI/stampy-ui/blob/e9647cdaa27110c515cf47160a0ad81651b62c1d/.github/workflows/questions-encodings.yml

Requires a PUSH_AUTH_TOKEN secret with a PAT with write permissions on the repo code.

@jrhender jrhender force-pushed the jrhender-353-add-refresh-coda-cache-workflow branch from b094aec to 890308c Compare February 4, 2024 21:28
@jrhender
Copy link
Collaborator Author

jrhender commented Feb 4, 2024

@Aprillion would you be willing to create and add the PAT to the repo secrets? It can be a fine-grained PAT with only write privileges for the repo.

One other thing about this workflow is that it seems bypass branch protection rules. I set master to require a PR on my fork but was still able to run this workflow. Not a deal-breaker IMO, but something to be aware of.

@Aprillion
Copy link
Collaborator

Aprillion commented Feb 5, 2024

oof, I had to enroll the org to allow PAT first in https://github.com/organizations/StampyAI/settings/personal-access-tokens, now I can change the Resource owner in https://github.com/settings/personal-access-tokens/new to StampyAI to be able to select this repo and generate the PAT 😓

I created one with the Contents permission with longest possible expiration (1 year) and copied it to a new repository secret PUSH_AUTH_TOKEN in https://github.com/StampyAI/stampy-ui/settings/secrets/actions

and I sent you org invitation with the Members role and Deployers team so you should be able to trigger workflows 🤞

@jrhender
Copy link
Collaborator Author

jrhender commented Feb 5, 2024

@Aprillion sounds good, thank you 🙇

@jrhender jrhender merged commit e719fc1 into StampyAI:master Feb 5, 2024
1 check passed
@jrhender jrhender deleted the jrhender-353-add-refresh-coda-cache-workflow branch February 5, 2024 09:23
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.

2 participants