Skip to content

Commit

Permalink
Merge pull request #4 from GrantBirki/general-updates
Browse files Browse the repository at this point in the history
General Updates
  • Loading branch information
GrantBirki committed Apr 22, 2023
2 parents 78e22e5 + bfef38e commit 9a22850
Show file tree
Hide file tree
Showing 8 changed files with 3,009 additions and 10,790 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3.5.0
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: .node-version
cache: 'npm'

- name: install dependencies
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/package-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.5.0

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: .node-version
cache: 'npm'

- name: install dependencies
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: .node-version
cache: 'npm'

- name: install dependencies
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Here is a quick example of how to install this action in any workflow:

```yaml
# checkout the repository (required for this Action to work)
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3

# validate JSON and YAML files
- name: json-yaml-validate
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3

- name: json-yaml-validate
id: json-yaml-validate
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3

- name: json-yaml-validate
id: json-yaml-validate
Expand Down Expand Up @@ -142,7 +142,7 @@ Here is an example of how to use this feature:

```yaml
# checkout the repository
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3

- name: json-yaml-validate
uses: GrantBirki/json-yaml-validate@vX.X.X # replace with the latest version
Expand Down Expand Up @@ -275,7 +275,7 @@ If the file path to your `exclude_file` is `exclude.txt`, you would set the `exc

```yaml
# checkout the repository
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3

- name: json-yaml-validate
uses: GrantBirki/json-yaml-validate@vX.X.X # replace with the latest version
Expand Down
Loading

0 comments on commit 9a22850

Please sign in to comment.