Code Monkey home page Code Monkey logo

get-release's People

Contributors

bruceadams avatar dbrekelmans avatar dependabot[bot] avatar fredster33 avatar mbongard avatar nonamepro0 avatar ohmyguigs avatar philwc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

get-release's Issues

Extra outputs

The Github API provides a lot more output information than this action does.

I'm interested in using the following extra outputs:

  • name
  • body
  • draft
  • prerelease

BTW, nice simple action. I like it ;)

RequestError [HttpError]: Not Found

I have a problem using the sample. I get the following error if I want to use your action in my workflow. Can you please help me getting this sample working?

foo.yml

      - name: Get release
        id: get_release
        uses: bruceadams/[email protected]
        env:
          GITHUB_TOKEN: ${{ github.token }}
Run bruceadams/[email protected]
RequestError [HttpError]: Not Found
    at /home/runner/work/_actions/bruceadams/get-release/v1.2.2/dist/index.js:7474:23
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async run (/home/runner/work/_actions/bruceadams/get-release/v1.2.2/dist/index.js:24906:32) {
  name: 'HttpError',
  status: 404,
  headers: {
    'access-control-allow-origin': '*',
    'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset',
    connection: 'close',
    'content-encoding': 'gzip',
    'content-security-policy': "default-src 'none'",
    'content-type': 'application/json; charset=utf-8',
    date: 'Mon, 12 Oct 2020 06:51:22 GMT',
    'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
    server: 'GitHub.com',
    status: '404 Not Found',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'transfer-encoding': 'chunked',
    vary: 'Accept-Encoding, Accept, X-Requested-With',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-github-media-type': 'github.v3; format=json',
    'x-github-request-id': '0403:592E:206BC5B:338319B:5F83FCEA',
    'x-ratelimit-limit': '1000',
    'x-ratelimit-remaining': '999',
    'x-ratelimit-reset': '1602489082',
    'x-ratelimit-used': '1',
    'x-xss-protection': '1; mode=block'
  },
  request: {
    method: 'GET',
    url: 'https://api.github.com/repos/dojo90/Playground/releases/tags/refs/heads/master',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit.js/16.43.2 Node.js/12.13.1 (Linux 5.4; x64)',
      authorization: 'token [REDACTED]'
    },
    request: { hook: [Function: bound bound register], validate: [Object] }
  },
  documentation_url: 'https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name'
}
Error: Not Found

Unable to get tag_name

      - name: Upload
        uses: actions/[email protected]
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          upload_url: ${{ steps.get_release.outputs.upload_url }}
          asset_path: ./target/release/bin
          asset_name: tag-${{ steps.get_release.outputs.tag_name }}-bin
          asset_content_type: application/octet-stream

Get a tag--bin

Parameter token or opts.auth is required

Error: Parameter token or opts.auth is required
    at Function.getAuthString (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:7018:19)
    at Function.getOctokitOptions (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:6983:29)
    at new GitHub (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:6967:22)
    at run (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:24720:20)
    at Object.31 (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:397:3)
    at __webpack_require__ (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:22:30)
    at startup (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:37:19)
    at /home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:41:18
    at Object.<anonymous> (/home/runner/work/_actions/bruceadams/get-release/v1.2.0/dist/index.js:44:10)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
##[error]Parameter token or opts.auth is required

Author data on output

I'm using this to send release-notes in slack for our release action, it would be nice to have author data so the message can contain the user who made the release.

From the docs you linked in the README I understood that this can be done by getting the author.login login for example, using like so:

env: {
        TAG_NAME: '${{ steps.get_release.outputs.tag_name }}',
        NOTES: '${{ steps.get_release.outputs.body }}',
        AUTHOR: '${{ steps.get_release.outputs.author.login }}',

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.