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

getInput does not replace envs #623

Open
liudonghua123 opened this issue Nov 3, 2020 · 0 comments
Open

getInput does not replace envs #623

liudonghua123 opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request external

Comments

@liudonghua123
Copy link

liudonghua123 commented Nov 3, 2020

Describe the bug
I use a github action (https://github.com/xresloader/upload-to-github-release) to upload some files which the name contains some environment variable, but it seems getInput does not process envs replacement. getInput("file") got ${APP_NAME}-linux-1.0.0+1.zip in the following example.

      - uses: xresloader/upload-to-github-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          file: ${APP_NAME}-linux-${{ steps.branch_name.outputs.SOURCE_NAME }}.zip
          tags: true
          draft: false
Run xresloader/upload-to-github-release@v1
  with:
    file: ${APP_NAME}-linux-1.0.0+1.zip
    tags: true
    draft: false
    overwrite: false
    prerelease: false
    verbose: false
    update_latest_release: false
  env:
    APP_NAME: ynu_network_reset
    JAVA_HOME_8.0.272_x64: /opt/hostedtoolcache/jdk/8.0.272/x64
    JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.272/x64
    JAVA_HOME_8_0_272_X64: /opt/hostedtoolcache/jdk/8.0.272/x64
    FLUTTER_HOME: /opt/hostedtoolcache/flutter/1.24.0-6.0.pre-dev/x64
    GITHUB_TOKEN: ***
Found tag to push: 1.0.0+1.
Error: Can not find any file by ${APP_NAME}-linux-1.0.0+1.zip

https://github.com/xresloader/upload-to-github-release/blob/fdd72e02aaa9581a25515ebc2d8ec0492efb635a/src/index.ts#L15

Expected behavior
getInput can process envs or provide some options for envs replacement.

@liudonghua123 liudonghua123 added the bug Something isn't working label Nov 3, 2020
@thboop thboop added enhancement New feature or request external and removed bug Something isn't working labels Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external
Projects
None yet
Development

No branches or pull requests

2 participants