Git Product home page Git Product logo

Comments (5)

sciencepal avatar sciencepal commented on May 26, 2024 3

Found the issue !! I was doing using actions/checkout to pull the repo. It was using the default GITHUB_TOKEN. Changed it to use my personal token with workflows scope as well ... worked seamlessly ... only interesting thing is that now in every run my wf file is getting updated which in turn is triggering another run .. in an endless loop xD. Not sure how I can prevent this :)

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024 2

@sciencepal Happy to hear that ;)
Regarding the endless loop: I think the easiest way to prevent it is to exclude the workflow itself and the README file from the push event path:

on:
  push:
    paths-ignore:
      - README.md
      - .github/workflows/rating-chart.yml

If that doesn't work for you you'll need to find a way to detect whether the change has been made by the action...

from add-and-commit.

sciencepal avatar sciencepal commented on May 26, 2024 1

Thanks. Let me look into this. Will revert if I find a solution.

from add-and-commit.

sciencepal avatar sciencepal commented on May 26, 2024 1

Thanks @EndBug . That actually worked. Now I can randomize the cron interval to schedule runs any time. Awesome !!

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024

Hi, I have no idea on how to solve this. I think that it might be an issue caused by the fact that the action doesn't authenticate as an OAuth app (?)

I know for a fact that OAuth apps can have the workflow permission (I use it with gitpod), but I don't know how GitHub classifies action runs. The only sure thing is that GitHub knows when a commit is made by GitHub actions, since they can't trigger a second workflow run, so maybe they're also preventing them from editing workflows. I don't know, these are just theories.

from add-and-commit.

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.