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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support env var in name or path #17

Closed
FernandoMiguel opened this issue Sep 21, 2019 · 6 comments
Closed

support env var in name or path #17

FernandoMiguel opened this issue Sep 21, 2019 · 6 comments

Comments

@FernandoMiguel
Copy link

    - name: publish
      uses: actions/upload-artifact@master
      with:
        name: mypackage-$GITHUB_SHA
        path: ./OUT/mypackage-$GITHUB_SHA
@eine
Copy link

eine commented Sep 21, 2019

I think that you can achieve it with ${{ github.sha }}.

@FernandoMiguel
Copy link
Author

@1138-4eb thank, will give it a try

@ztl8702
Copy link

ztl8702 commented Sep 22, 2019

What about environment variables like HOME?

    - name: publish
      uses: actions/upload-artifact@master
      with:
        name: mypackage
        path: ${HOME}/output

^ this didn't work, ${HOME} was interpreted verbatim

@FernandoMiguel
Copy link
Author

@ztl8702 it always starts in the job home.
So I don't find that required

@ztl8702
Copy link

ztl8702 commented Sep 22, 2019

Well not quite; HOME points to D:\ on the windows machine. Whereas the upload-artifacts assumes the starting path is D:\a\<repo-name>\<repo-name>

Also HOME is just an example, could be TEMP or other environment variables.
People might have the need to produce artifacts to a tmp folder rather than inside the repository.

@eine
Copy link

eine commented Sep 22, 2019

Ref #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants