GithubHelp home page GithubHelp logo

action-stars / install-tool-from-github-release Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 18 KB

GitHub Acton to download a GitHub repository release artifact.

License: MIT License

github-actions

install-tool-from-github-release's People

Contributors

dependabot[bot] avatar quotidian-ennui avatar stevehipwell avatar

Stargazers

 avatar  avatar

Forkers

quotidian-ennui

install-tool-from-github-release's Issues

filename_format_linux does not handle templating

Running on ubuntu-latest

  steps:
    - name: Install sccache
      uses: action-stars/[email protected]
      with:
        github_token: ${{ inputs.token }}
        owner: mozilla
        repository: sccache
        name: sccache
        extract: true
        version: ${{ inputs.version }}
        os_linux: unknown-linux-musl
        arch_amd64: x86_64
        subdirectory: "{name}-{version}-{arch}-{os}"
        filename_format_linux: "{name}-{version}-{arch}-{os}.{ext}"
        check_command: sccache --version

Note that the above isn't strictly correct but is enough to illuminate the problem needs to really be :
"{name}-v{version}-{arch}-{os}"

It causes this in the workflow-run logging

Run action-stars/[email protected]
  with:
    github_token: ***
    owner: mozilla
    repository: sccache
    name: sccache
    extract: true
    version: 0.7.0
    os_linux: unknown-linux-musl
    arch_amd64: x86_64
    subdirectory: {name}-{version}-{arch}-{os}
    filename_format_linux: {name}-{version}-{arch}-{os}.{ext}
    check_command: sccache --version
    tag_prefix: v
    arch_arm64: arm64
    os_macos: macos
    os_windows: windows
    extract_mode_linux: tar.gz
    extract_mode_macos: tar.gz
    extract_mode_windows: zip
    filename_format: {name}_{version}_{os}_{arch}.{ext}
Run action-stars/github-release-lookup@c86fa936d2dea43eac094b7d3e4ed486a93d1484
  with:
    github_token: ***
    owner: mozilla
    repository: sccache
    tag_prefix: v
    version: 0.7.0
Run ${GITHUB_ACTION_PATH}/scripts/lookup.sh
  ${GITHUB_ACTION_PATH}/scripts/lookup.sh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GITHUB_TOKEN: ***
    OWNER: mozilla
    REPOSITORY: sccache
    VERSION: 0.7.0
    TAG_PREFIX: v
Error: The template is not valid. action-stars/install-tool-from-github-release/v0.2.0/action.yml (Line: 109, Col: 20): The following format string is invalid: [https://github.com/${{](https://github.com/$%7B%7B) inputs.owner }}/${{ inputs.repository }}/releases/download/${{ inputs.tag_prefix }}{version}/%s

Looks like https://github.com/action-stars/install-tool-from-github-release/blob/58e2dd20166c0eb19ab9ac4d0966c930a647ee69/action.yml#L109C56-L111 doesn't like the extra templating {} that is being used. (no doubt because it's nested go templating).

  • The downstream pbrisbin/setup-tool-action doesn't say whether templating is supported or not when you specify the linux_url_.
  • It does work if you switch to using filename_format, because you don't use format()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.