From dc056a1d20923dbc4eb278fa4625df155f9a2d8d Mon Sep 17 00:00:00 2001 From: Opportunity Date: Sat, 23 May 2020 22:45:42 +0800 Subject: [PATCH] update doc --- README.md | 8 ++++++++ action.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ddb5195..ff18de7 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ with: xmake-version: branch@master ``` +Use specified pr: + +```yml +uses: xmake-io/github-action-setup-xmake@v1 +with: + xmake-version: pr@1 +``` + Use semver: ```yml diff --git a/action.yml b/action.yml index b50532d..30d826a 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ inputs: xmake-version: required: true default: latest - description: The version to use. Should be a semver range or 'latest' + description: The version to use. Should be a semver range or 'latest'. Or use pr@{pr_number} to select a pr, use branch@{branch_name} to select a branch runs: using: 'node12'