Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use alternative checkout path #224

Closed
abatilo opened this issue Jun 23, 2020 · 1 comment
Closed

Can't use alternative checkout path #224

abatilo opened this issue Jun 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@abatilo
Copy link

abatilo commented Jun 23, 2020

const commit = yield git.getShortCommit();
const tag = yield git.getTag();
const isTagDirty = yield git.isTagDirty(tag);
if (workdir && workdir !== '.') {
core.info(`馃搨 Using ${workdir} as working directory...`);
process.chdir(workdir);
}

If I checkout my code into another directory so that I can set a $GOPATH:

      - name: Check out code into the Go module directory
        uses: actions/checkout@v2
        with:
          path: ${{ github.workspace }}/src/github.com/abatilo/my_repository

Since it appears that this action tries to get the git hash BEFORE doing any changing of directories, there is no .git directory in the starting directory of the action.

crazy-max added a commit that referenced this issue Jun 24, 2020
@crazy-max crazy-max added the bug Something isn't working label Jun 24, 2020
@crazy-max
Copy link
Member

@abatilo Should be fixed now. Thanks for your input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants