-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 or stable) | `stable` | ||
token | Github auth token (default variable for each aciton 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 | ||
|
||
### Outputs | ||
Action outputs variable `release` with tag name of release. | ||
|
||
## Usage example | ||
|
||
``` | ||
on: | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: | ||
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 }} | ||
``` |