Skip to content

Commit

Permalink
Migration from v2 to v3 github actions (#1230)
Browse files Browse the repository at this point in the history
* Migration from v2 to v3 github actions

* actions/github-script update
  • Loading branch information
olegbespalov authored Jun 22, 2023
1 parent de1a7bc commit ee56ac7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -47,7 +47,7 @@ jobs:
name: Lint prose
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Print build settings
run: |
Expand All @@ -72,14 +72,14 @@ jobs:
echo "GATSBY_DEFAULT_APP_URL: $GATSBY_DEFAULT_APP_URL"
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- name: Restore node_modules cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Post published URL to PR
# Run only if we did not skip the upload step and it's the first run for this PR.
if: steps.upload.outcome == 'success' && github.event.action == 'opened'
uses: actions/github-script@0.8.0
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -52,14 +52,14 @@ jobs:
- update-dependencies
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -79,7 +79,7 @@ jobs:
name: Lint prose
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -96,14 +96,14 @@ jobs:
- lint
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Restore node_modules cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
name: Lint prose
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -88,15 +88,15 @@ jobs:
- lint
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js 16.xs
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Restore node_modules cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
needs: [build-deploy-staging]
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: JustinBeckwith/linkinator-action@v1
with:
paths: ${{ env.GATSBY_DEFAULT_DOC_URL }}
Expand Down

0 comments on commit ee56ac7

Please sign in to comment.