Skip to content

Commit

Permalink
[CI] Upgrade GH actions to latest versions (#3572)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
chalin and cartermp authored Nov 22, 2023
1 parent a7cfb11 commit 2791413
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

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

- name: Use CLA approved github bot
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ jobs:
name: FILENAME check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm run check:filenames

check-formatting:
name: FILE FORMAT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create NPM cache-hash input file
run: |
mkdir -p tmp
jq '{devDependencies, dependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: BUILD and CHECK LINKS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create NPM cache-hash input file
run: |
Expand All @@ -24,7 +24,7 @@ jobs:
package.json > tmp/package-min.json
cp tmp/package-min.json package.json
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -46,7 +46,7 @@ jobs:
needs: build-and-check-links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with: { name: build-log-etc }
- run: npm run diff:fail
Expand All @@ -56,7 +56,7 @@ jobs:
needs: build-and-check-links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with: { name: build-log-etc }
- run: cat tmp/build-log.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: SPELLING check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v2
with:
# Files should be consistent with check:spelling files
Expand All @@ -22,7 +22,7 @@ jobs:
name: CSPELL:IGNORE check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm run fix:dict
- name: Any changed files?
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: TEXT linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Make sure that we only install the dependencies for textlint to speed up install
- run: |
mkdir -p tmp
Expand All @@ -23,7 +23,7 @@ jobs:
name: MARKDOWN linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create and use reduced-dependencies package.json
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo $PR_NUM
echo $COMMENT
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: gh pr checkout $PR_NUM
env:
Expand All @@ -38,7 +38,7 @@ jobs:
mkdir -p tmp
jq '{devDependencies, dependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
echo $PR_NUM
echo $COMMENT
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: gh pr checkout $PR_NUM
env:
Expand All @@ -95,7 +95,7 @@ jobs:
mkdir -p tmp
jq '{devDependencies, dependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand Down

0 comments on commit 2791413

Please sign in to comment.