mirror of
https://github.com/FranzDiebold/github-env-vars-action.git
synced 2025-04-20 07:27:04 -05:00
Improve documentation.
This commit is contained in:
parent
71f6f104cc
commit
d4fc571a0d
4 changed files with 8 additions and 8 deletions
6
.github/workflows/demo.yml
vendored
6
.github/workflows/demo.yml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
|||
name: Linux Demo
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: franzdiebold/github-env-vars-action@v1.1.2
|
||||
- uses: FranzDiebold/github-env-vars-action@v1.1.3
|
||||
- name: Print environment variables exposed by this action
|
||||
run: |
|
||||
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
|
||||
|
@ -25,7 +25,7 @@ jobs:
|
|||
name: Windows Demo
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: franzdiebold/github-env-vars-action@v1.1.2
|
||||
- uses: FranzDiebold/github-env-vars-action@v1.1.3
|
||||
- name: Print environment variables exposed by this action
|
||||
run: |
|
||||
echo "GITHUB_REPOSITORY_OWNER=$Env:GITHUB_REPOSITORY_OWNER"
|
||||
|
@ -43,7 +43,7 @@ jobs:
|
|||
name: macOS Demo
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: franzdiebold/github-env-vars-action@v1.1.2
|
||||
- uses: FranzDiebold/github-env-vars-action@v1.1.3
|
||||
- name: Print environment variables exposed by this action
|
||||
run: |
|
||||
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://github.com/marketplace/actions/github-environment-variables-action)
|
||||
[](.github/workflows/demo.yml)
|
||||
[version](https://img.shields.io/github/package-json/v/FranzDiebold/github-env-vars-action/primary?label=version)
|
||||

|
||||
[](https://github.com/FranzDiebold/github-env-vars-action/actions?query=workflow%3A%22Lint+and+Test%22)
|
||||
[](./LICENSE)
|
||||
|
||||
|
@ -29,11 +29,11 @@ For a full list of default environment variables exposed by GitHub see [https://
|
|||
| `GITHUB_SHA` | The commit SHA that triggered the workflow. | `ffac537e6cbbf934b08745a378932722df287a53` |
|
||||
| `GITHUB_REF` | The branch or tag ref that triggered the workflow. If neither a branch or tag is available for the event type, the variable will not exist. | `refs/heads/feat/feature-branch-1` |
|
||||
|
||||
## Example usage
|
||||
## :rocket: Example usage
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: franzdiebold/github-env-vars-action@v1.1.2
|
||||
- uses: FranzDiebold/github-env-vars-action@v1.1.3
|
||||
- name: Print environment variables
|
||||
run: |
|
||||
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-env-vars-action",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-env-vars-action",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "A GitHub Action to expose useful environment variables.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue