bruceadams / get-release Goto Github PK
View Code? Open in Web Editor NEWGithub Action to get release information based on a tag
License: MIT License
Github Action to get release information based on a tag
License: MIT License
The Github API provides a lot more output information than this action does.
I'm interested in using the following extra outputs:
BTW, nice simple action. I like it ;)
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
- 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
see: https://github.com/jolicode/castor/actions/runs/5879009613/job/15946039587
Indeed, the GitHub API seems to not work anymore!
https://api.github.com/repos/jolicode/castor/releases/tags/
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
Hello,
I'm trying to use this action, however, I'm getting the error:
(s || "").replace is not a function
Are you able to help?
It is said that set-output will be deprecated soon. : https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
However, I want to call steps.get_release.outputs.tag_name
with uses bruceadams/[email protected]
.
How should I change it?
Hi, GitHub has a plan to migrate your actions to Node 20, because Node 16 will deprecated.
You pretend lauch a new version for your plugin?
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
using bruceadams/get-release@v1
doesn't work
It needs to use bruceadams/[email protected]
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 }}',
Firstly, thank you for creating this actions, it's very useful.
However, recently I'm seeing a message on Github that Node.js 12 actions are deprecated
. Will this action be updated or do you recommend using another one?
Example:
https://github.com/createcandle/candle-weather/actions/runs/3297038736
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.