Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the latest version of a GitHub Action

Is it possible to use the latest version of a published GitHub Action from the Marketplace in a workflow?

This would be nice if it was somehow possible:

      - name: "TODO to Issue"
        uses: "alstr/todo-to-issue-action@latest"

For example, with a npm package you can do npm install node@latest to use the latest version of that package.

On an action's page, when you click on "Use latest version", it shows the following dialogue, where the version number is hard-coded:

example action

like image 235
jv-k Avatar asked Nov 29 '25 16:11

jv-k


1 Answers

The syntax is {owner}/{repo}@{ref} so you can point to the master branch as follow:

      - name: "TODO to Issue"
        uses: "alstr/todo-to-issue-action@master"

BTW In case of a major update, any breaking changes could stop your workflow, so I would suggest to tag to a major version, for example @4:

      - name: "TODO to Issue"
        uses: "alstr/todo-to-issue-action@v4"
like image 105
Matteo Avatar answered Dec 02 '25 06:12

Matteo