Code Monkey home page Code Monkey logo

Comments (8)

maxheld83 avatar maxheld83 commented on July 23, 2024 3

I still think it might help other users if this was briefly mentioned that by default, the action checks out $GITHUB_SHA in the docs: https://help.github.com/en/articles/configuring-a-workflow#using-the-checkout-action

Might also benefit from a link to what $GITHUB_SHA is for different events.

from checkout.

TingluoHuang avatar TingluoHuang commented on July 23, 2024 1

by default, checkout will run git fetch and git checkout $GITHUB_SHA

the ref input is for what ref to checkout, so you can do ref: refs/heads/master, ref: SHA or ref: tag

from checkout.

TingluoHuang avatar TingluoHuang commented on July 23, 2024 1

i will find someone on the doc team for this. :)

from checkout.

ericsciple avatar ericsciple commented on July 23, 2024 1

sounds like this is fixed now

from checkout.

maxheld83 avatar maxheld83 commented on July 23, 2024

thanks! Sorry, GITHUB_SHA is what I meant, not GITHUB_REF.

Whom can I poke to maybe clarify that in the docs? Am I the only one for whom that wasn't obvious?

from checkout.

maxheld83 avatar maxheld83 commented on July 23, 2024

I've added a PR to amend the README.md accordingly: #10

from checkout.

ibrasho avatar ibrasho commented on July 23, 2024

This should be closed now? 😁

from checkout.

mathstuf avatar mathstuf commented on July 23, 2024

The link for what $GITHUB_SHA is now in the top-level readme file.

from checkout.

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.