Skip to content

Commit

Permalink
Merge pull request #215 from github/update-actions
Browse files Browse the repository at this point in the history
Update Action Workflows
  • Loading branch information
GrantBirki authored Oct 6, 2023
2 parents ff4d3f6 + c6ec8d9 commit 27396ad
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/config/exclude.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# gitignore style exclude file for the GrantBirki/json-yaml-validate Action
.github/
4 changes: 2 additions & 2 deletions .github/workflows/actions-config-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
actions-config-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: actions-config-validation
uses: GrantBirki/json-yaml-validate@87b2d309a02f4942c5e602183eeea11008a640f9 # pin@v1.4.0
uses: GrantBirki/json-yaml-validate@3add42f5fa8bfff04a3fe664d27a316736257ef1 # pin@v2.3.1
with:
comment: "true" # enable comment mode
yaml_schema: "__tests__/schemas/action.schema.yml"
Expand Down
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
uses: actions/checkout@v4

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

- name: setup node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
uses: actions/setup-node@v3.8.1
with:
node-version-file: .node-version
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
uses: actions/setup-node@v3.8.1
with:
node-version-file: .node-version
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
uses: actions/setup-node@v3.8.1
with:
node-version-file: .node-version
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
# Run your deployment logic for your project here - examples seen below

# Checkout your projects repository based on the ref provided by the branch-deploy step
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}

Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checkout your projects repository
- uses: actions/checkout@v3
- uses: actions/checkout@v4
```

Sets up your `demo` job, uses an ubuntu runner, and checks out your repo - Just some standard setup for a general Action. We also add an `if:` statement here to only run this workflow on pull request comments to make it a little cleaner
Expand Down
20 changes: 10 additions & 10 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uses: github/branch-deploy@vX.X.X

# If the branch-deploy Action was triggered, checkout our branch
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}

Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: steps.branch-deploy.outputs.continue == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: steps.branch-deploy.outputs.continue == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: steps.branch-deploy.outputs.continue == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -318,7 +318,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:
# If the branch-deploy Action was triggered, checkout our branch
- name: Checkout
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
Expand Down Expand Up @@ -521,7 +521,7 @@ jobs:
steps:
# checkout the project's repository based on the ref provided by the branch-deploy step
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.trigger.outputs.ref }}
Expand Down Expand Up @@ -688,7 +688,7 @@ jobs:
steps:
# checkout the project's repository based on the ref provided by the branch-deploy step
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.trigger.outputs.ref }}

Expand Down Expand Up @@ -906,7 +906,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.trigger.outputs.ref }}

Expand Down
2 changes: 1 addition & 1 deletion docs/merge-commit-strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# Otherwise, all subsequent steps will be skipped

# Check out the repository
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ steps.deployment-check.outputs.continue == 'true' }} # only run if the Action returned 'true' for the 'continue' output

# Do your deployment here! (However you want to do it)
Expand Down

0 comments on commit 27396ad

Please sign in to comment.