Search code examples
githubgithub-actions

How to use a fork of a repository in my workflows?


My current workflow is as such:

steps:
    - uses: actions/checkout@v4
    - uses: nikeee/setup-pandoc@v1
    # do stuff

My problem is the current implementation of the setup-pandoc action is not compatible with macOS build. I already created a PR which is waiting for aproval and release. In the meantime I would like my CI to stop complaining. Is it possible to rely on my fork of the repository (12rambau/setup-pandoc) instead, even though it's not published in the marketplace?


Solution

  • Yes, you can use your fork. Change your workflow file like so:

    steps:
        - uses: actions/checkout@v4
        - uses: 12rambau/setup-pandoc@BRANCH
    

    where BRANCH should be replaced with the branch in your repo.