Coder Social home page Coder Social logo

Comments (2)

tibdex avatar tibdex commented on May 27, 2024 1

It's explained here:

- 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 }}

It's a workaround until GitHub supports triggering a new workflow from another workflow run with GITHUB_TOKEN.

You should create a personal token with repo access and add it as a repo secret. The token name doesn't matter but it doesn't hurt to call it Autosquash so that your future self know what it's for. You can give a different name than AUTOSQUASH_TOKEN to the secret but then don't forget to change it too in your workflow file.

from autosquash.

bjchambers avatar bjchambers commented on May 27, 2024

Adding on to this, it would be helpful if this was mentioned in the README, as well as which permission the token needs to have.

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.