Coder Social home page Coder Social logo

Comments (5)

wesleybl avatar wesleybl commented on July 20, 2024 1

I see that we now have github actions in many Plone repositories. Should we add this in https://github.com/plone/meta?

CC @gforcada

from plone.restapi.

wesleybl avatar wesleybl commented on July 20, 2024

@Akshat2Jain would you like to do a PR to fix this? It's basically putting pull_request in on in all .yml files here:

https://github.com/plone/plone.restapi/tree/master/.github/workflows

It is also necessary to put:

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

in all jobs. See:

plone/volto@5808b78

from plone.restapi.

Akshat2Jain avatar Akshat2Jain commented on July 20, 2024

@Akshat2Jain would you like to do a PR to fix this? It's basically putting pull_request in on in all .yml files here:

https://github.com/plone/plone.restapi/tree/master/.github/workflows

It is also necessary to put:

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

in all jobs. See:

plone/volto@5808b78

Yeah Sure!

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

So basically the above code states that this condition ensures that the job is only executed when the event is not a pull request or when the head repository (fork) is different from the base repository.

right? @wesleybl

from plone.restapi.

wesleybl avatar wesleybl commented on July 20, 2024

@Akshat2Jain exactly! This prevents jobs from running twice if it's a PR made from the original repository.

from plone.restapi.

gforcada avatar gforcada commented on July 20, 2024

@wesleybl yes, contributions to plone/meta are always welcome, though plone.rest and plone.restapi are still not converted/adjusted to use plone/meta.

@tisto wanted to discuss that during the Bonn sprint, but did not happen 😅 but yeah, in a way or another it will be configured eventually, so contributions there to improve its quality and usability would be great 👍🏾

from plone.restapi.

Related Issues (20)

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.