Skip to content

dariocurr/checkout-called

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

checkout-called

Checkout the called repository at the same reference it was invoked with

Why

Following the discussion here, since evidently there is not enough dogfeeding happening at @github, I created checkout-called to simplify checking out the called repository in your reusable workflows

Usage

This action requires id-token: write permissions

To use this action in your called workflows and check out the repository automatically, add the following lines:

- name: Checkout called repo
  uses: dariocurr/checkout-called@main

This action mirrors the arguments of actions/checkout, except for ref and repository that are injected automatically based on the call.

For example, if you call: user/repository/.github/workflows/workflow.yml@branch, it will checkout the user/repository repository using branch as reference

This repository is committed to maintaining compatibility and same version as actions/checkout

Versioning and tags

Tags (for example v6.0.2) may move to stay aligned with actions/checkout for the same release line. This is intentional and not an error.

If you need a fully immutable reference for automation, pin to a commit SHA instead of a tag.

About

checkout the called repository at the same ref it was called

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors