insonusk / get-latest-release Goto Github PK
View Code? Open in Web Editor NEWGet latest release, include all types of release
License: Apache License 2.0
Get latest release, include all types of release
License: Apache License 2.0
Running this action generates warnings like:
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
After a maven release:perform
I execute your action. It runs fine, but does not return any outputs...
Execution can be see here: https://github.com/cemartins/AnsibleVaultFx/runs/2151096961?check_suite_focus=true
My workflow is like this:
- name: Perform release for MacOs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn --batch-mode -Darguments="-Dmaven.javadoc.skip=true" release:perform -Dusername=$GITHUB_ACTOR -Dpassword=$GITHUB_TOKEN
- name: Get latest release info
id: releaseInfo
uses: InsonusK/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
view_top: 10
- name: Print release information
run: |
echo "id: ${{ steps.releaseInfo.outputs.id }}"
echo "name: ${{ steps.releaseInfo.outputs.name }}"
echo "tag_name: ${{ steps.releaseInfo.outputs.tag_name }}"
echo "created_at: ${{ steps.releaseInfo.outputs.created_atd }}"
echo "draft: ${{ steps.releaseInfo.outputs.draft }}"
echo "prerelease: ${{ steps.releaseInfo.outputs.prerelease }}"
First off, thanks for this really simple and great github action ๐ช
It would be even more amazing if it was possible to get the link to the release draft?
The
set-output
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/Show less
Currently, not passing required fields only throws an unhandled promise rejection and should instead fail completely, the step using this action passed with flying colors even though it didn't do anything.
There should be try/catch logic or an upfront sanity check to ensure that required expected values are present and fail/exit if not.
Warning: Unexpected input(s) 'github_token', valid inputs are ['myToken', 'exclude_types', 'view_top']
2
Run InsonusK/[email protected]
6
(node:2373) UnhandledPromiseRejectionWarning: Error: Parameter token or opts.auth is required
7
at Object.getAuthString (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1573:15)
8
at Object.getOctokitOptions (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:2853:24)
9
at Object.getOctokit (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1793:39)
10
at /home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1489:32
11
at Generator.next (<anonymous>)
12
at /home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1466:71
13
at new Promise (<anonymous>)
14
at module.exports.47.__awaiter (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1462:12)
15
at run (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1480:12)
16
at Object.47 (/home/runner/work/_actions/InsonusK/get-latest-release/v1.0.1/dist/index.js:1539:1)
17
(node:2373) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
18
(node:2373) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Are we able to add an output that contains the markdown body of the draft release?
When running a GH workflow with
InsonusK/[email protected],
action, I have this warning: "Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: InsonusK/[email protected],"=> Node.js must be upgraded to version 20, see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
Triggers a warning:
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: InsonusK/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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.