Coder Social home page Coder Social logo

Comments (12)

Kineolyan avatar Kineolyan commented on May 27, 2024 1

For the record, after switching the tests to CircleCI instead of one Github Action, it is working like a charm.

from autosquash.

tibdex avatar tibdex commented on May 27, 2024 1

Yes workflows can be scheduled. You could also try adding:

- uses: tibdex/autosquash@v2
with:
# We can't use the built-in secrets.GITHUB_TOKEN yet because of this limitation:
# https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676
# In the meantime, use a personal access token with repo access.
# See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
github_token: ${{ secrets.AUTOSQUASH_TOKEN }}

at the end of your existing GitHub CI workflow.

from autosquash.

tibdex avatar tibdex commented on May 27, 2024

Seems related to #22 (comment) since your PR status is blocked too. You can set the ACTIONS_STEP_DEBUG secret to true in your repo and try to reproduce the issue to get more details about what event triggered the action and in which state your PR was at that time.

from autosquash.

tibdex avatar tibdex commented on May 27, 2024

In fact the issue is that checks created by GitHub Actions will not trigger workflows so Autosquash doesn't rerun after your build action.

from autosquash.

Kineolyan avatar Kineolyan commented on May 27, 2024

Thanks for the feedback. I'm watching the answer as you are. Feel free to close this issue if you want.

from autosquash.

boredland avatar boredland commented on May 27, 2024

hi! does this mean, currently the branches marked as "autosquash" aren't merged after the checks are green? thats a bummer...

from autosquash.

tibdex avatar tibdex commented on May 27, 2024

Depends how your checks became green.

  • If it was triggered by a GitHub Action, the Autosquash workflow won't execute as explained in #25 (comment).
  • If it was triggered by an external action such as a successful CircleCI/Travis CI workflow, then the Autosquash workflow will execute as confirmed in #25 (comment).

from autosquash.

boredland avatar boredland commented on May 27, 2024

one of my checks is a github workflow (a ci pipeline). I wanted to merge as soon as all checks (including that one) are green.

from autosquash.

boredland avatar boredland commented on May 27, 2024

would it be possible to run the autosquash action on a schedule to come around that for now?

from autosquash.

boredland avatar boredland commented on May 27, 2024

thanks @tibdex ! But when I run it on a schedule, I get this totally different error:
##[error]Cannot destructure property `name` of 'undefined' or 'null'.

So I'd guess you extract some information from the github event that isn't there on a schedule obviously. The github_token I have already set, but I think I doesn't help the situation, that another gh action marks green.

from autosquash.

boredland avatar boredland commented on May 27, 2024

totally overread that I should add that to the existing workflow! Makes sense, will try. Still think handling schedule-events would make sense.

from autosquash.

tibdex avatar tibdex commented on May 27, 2024

You can use https://github.com/marketplace/actions/github-app-token as an often better workaround to secrets.GITHUB_TOKEN's limitations than a personal access token.

from autosquash.

Related Issues (19)

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.