Giter Club home page Giter Club logo

Comments (7)

robinraju avatar robinraju commented on July 17, 2024 1

This sounds like a good addition to this action. I can add the tag_name of a release to the output, as it is readily available.

from release-downloader.

robinraju avatar robinraju commented on July 17, 2024

@fiddlermikey I just merged a PR which adds the tag_name output variable to this action. You may use it from the main branch as follows

- uses: robinraju/release-downloader@a2560d77c56d90bc684e42df51576a951cd49b86
  with:
    latest: true
    fileName: "foo.zip"

it can be accessed as follows

${{steps.<step-id>.outputs.tag_name}}

I'll publish a new version once you confirm it works as expected.

from release-downloader.

fiddlermikey avatar fiddlermikey commented on July 17, 2024

I am getting the following error:
Error: unable to verify the first certificate when using release-downloader@main

Reverting back to 1.4 the error went away

name: Get Latest Release
on: [push, repository_dispatch, workflow_dispatch]

jobs:
  build:
    name: FindLatestRelease
    runs-on: windows-latest
    steps:
      - name: Download Release Asset
        id: downloadAsset
        uses: robinraju/release-downloader@[main | v1.4]
        with:
          repository: ${{ github.repository }}  
          token: ${{ github.token }}
          latest: true
          fileName: "*.zip"
          github-api-url: "https://keyfactor.com/api/v3"
        
      - name: debug output
        run: |
          echo "latestReleaseTag = ${{ steps.downloadAsset.outputs.tag_name }}"
          

from release-downloader.

robinraju avatar robinraju commented on July 17, 2024

A similar issue with a solution described here: https://stackoverflow.com/questions/71658093/github-actions-self-hosted-runner-error-unable-to-verify-the-first-certificate

Can you try that and see if it works.

And more here: https://github.com/actions/runner/blob/main/docs/checks/sslcert.md

from release-downloader.

fiddlermikey avatar fiddlermikey commented on July 17, 2024

The first link is to a solution for self-hosted runners behind a firewall and the second requires access to the runner OS configuration and I am using the github hosted windows-latest runner and do not have the option to mess with the configuration.

from release-downloader.

robinraju avatar robinraju commented on July 17, 2024

I am using the github hosted windows-latest runner

in that case its not required to use the github-api-url: "https://keyfactor.com/api/v3" param.
this option is only for github enterprise hosted on a custom domain.

This option is required if the target repo is hosted on GH enterprise. Unfortunately, I haven't used GH enterprise, and this action is not tested against a real one.

from release-downloader.

damoun avatar damoun commented on July 17, 2024

Hi @robinraju Can you create a new release ? I'm not able to use tag_name in the latest release.

from release-downloader.

Related Issues (20)

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.