GithubHelp home page GithubHelp logo

Comments (5)

dhimmel avatar dhimmel commented on July 20, 2024 1

Okay I set up the repository dispatch in 48d40a4 and manubot/manubot.org@6ec28ef. I renamed @manubot-catalog-travis-bot to @manubot-org-bot, which is a GitHub account that only has write access to https://github.com/manubot/manubot.org. This way we don't have to worry about the broad scope of the repo PATs.

See the CI builds at

Slight worry that there is not enough of a delay, such that https://manubot.github.io/catalog/catalog.json won't have started serving the new data yet. Will see if this is a problem.

from catalog.

dhimmel avatar dhimmel commented on July 20, 2024

More info on the change at https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing

from catalog.

agitter avatar agitter commented on July 20, 2024

we will have to look into having this action trigger the website action

A quick search gave a few leads:

The peter-evans/repository-dispatch action looks like the best choice initially because it is maintained and supports a payload. aurelien-baudet/workflow-dispatch has support to wait for an workflow triggered in another repository to complete, which is a nice feature but not needed here. ph-fritsche/action-dispatch supports workflow or repository events. GitHub describes the difference as

You can manually trigger workflow runs. To trigger specific workflows in a repository, use the workflow_dispatch event. To trigger more than one workflow in a repository and create custom events and event types, use the repository_dispatch event.

We'll eventually need to migrate the other manubot organization repositories as well: https://travis-ci.com/github/manubot

from catalog.

dhimmel avatar dhimmel commented on July 20, 2024

I switched this repo and the website to GitHub Actions and revoked the Travis CI permissions for those repos. See the GitHub workflows at:

Both workflows are scheduled to run once per week. I scheduled the manubot.org build to be an hour after the catalog build. Currently, did not set up repository dispatch.

The manubot.org job is super fast (40 seconds), so we could schedule it daily. It was nice to have the website update quickly after a manuscript is added. So perhaps we should look into repository dispatch.

from catalog.

agitter avatar agitter commented on July 20, 2024

This is a nice solution. Using the GitHub Pages action instead of the deploy script simplifies the workflow considerably.

If we change the manubot.org builds to run daily, that would be a reasonable alternative to repository dispatch-triggered builds. Triggered builds would be easy to set up now that you've switched both workflows the GitHub Actions. The only downside is that we would need to add a personal access token instead of using the GITHUB_TOKEN .

from catalog.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.