Skip to content

Commit

Permalink
Merge branch 'master' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
battila7 committed Jan 5, 2021
2 parents 19a2b9e + f651987 commit 169bf49
Show file tree
Hide file tree
Showing 546 changed files with 12,338 additions and 187,513 deletions.
23 changes: 19 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ bower_components
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# TypeScript v1 declaration files
typings/
# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo
Expand Down Expand Up @@ -70,17 +74,18 @@ typings/

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

Expand All @@ -98,3 +103,13 @@ dist

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Finally, you can reliably get the pushed version on every platform.

### `version`

The pushed version. If `github.ref` was `/refs/tags/v1.2.7` then the value of this output will be `v1.2.7`.
The pushed version. If `github.ref` was `refs/tags/v1.2.7` or `refs/heads/release/v1.2.7` then the value of this output will be `v1.2.7`.

### `version-without-v`

The pushed version with the leading `v` stripped. If `github.ref` was `/refs/tags/v1.2.7` then the value of this output will be `1.2.7`.
The pushed version with the leading `v` stripped. If `github.ref` was `refs/tags/v1.2.7` then the value of this output will be `1.2.7`.

If the version does not start with a leading `v` character, then the value of this output is the same as that of `version`.

Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: 'Get Version'
description: 'Extracts the version from github.ref.'
outputs:
version:
description: 'The pushed tag version, for example "v1.2.7"'
description: 'The pushed version, for example "v1.2.7"'
version-without-v:
description: 'The pushed tag version, without the v prefix, for example "1.2.7"'
description: 'The pushed version, without the v prefix, for example "1.2.7"'
runs:
using: 'node12'
main: 'index.js'
main: 'dist/index.js'
Loading

0 comments on commit 169bf49

Please sign in to comment.