Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rez0n/actions-github-release
Github Action that able to get the release version of the remote repository in your Actions workflow
https://github.com/rez0n/actions-github-release
actions continuous-integration github-actions
Last synced: 11 days ago
JSON representation
Github Action that able to get the release version of the remote repository in your Actions workflow
- Host: GitHub
- URL: https://github.com/rez0n/actions-github-release
- Owner: rez0n
- License: apache-2.0
- Created: 2020-11-04T17:32:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T15:31:32.000Z (6 months ago)
- Last Synced: 2024-10-31T10:38:59.406Z (15 days ago)
- Topics: actions, continuous-integration, github-actions
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 13
- Watchers: 1
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Actions: Get Github release
This Action able to get latest release version (tag) of the remote repository.## Configuration
### Inputs
Name | Description | Example
--- | --- | ---
repository | The Github owner/repository | `nodejs/node`
type | The release type (prerelease | stable | latest | nodraft) | `stable`
token | Github auth token (default variable for each action session) | `${{ secrets.GITHUB_TOKEN }}`#### Possible values for `type` input
* *stable* - Get the stable `latest` release
* *prerelease* - Get the latest `prerelease`
* *latest* - Get the *really* latest release with no matter is it stable or prerelease
* *nodraft* - Get the *really* latest release excluding drafts### Outputs
Action outputs 3 variables
- `release` - release tag
- `release_id` - release Github ID
- `browser_download_url` - URL to download first file in release assets## Usage example
```
on:
push:
branches: [ main ]jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:- name: Get latest release of NodeJS
uses: rez0n/actions-github-release@main
id: node_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "nodejs/node"
type: "stable"- name: Build image
uses: docker/build-push-action@v1
with:
...
dockerfile: Dockerfile
tags: latest, ${{ steps.node_release.outputs.release }}
```