Skip to content

Commit 3315cb6

Browse files
author
minder-staging[bot]
committed
Replace unpinned actions with pinned action
1 parent bcad20f commit 3315cb6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/nextjs.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,29 @@
33
# To get started with Next.js see: https://nextjs.org/docs/getting-started
44
#
55
name: Deploy Next.js site to Pages
6-
76
on:
87
# Runs on pushes targeting the default branch
98
push:
109
branches: ["main"]
11-
1210
# Allows you to run this workflow manually from the Actions tab
1311
workflow_dispatch:
14-
1512
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1613
permissions:
1714
contents: read
1815
pages: write
1916
id-token: write
20-
2117
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2218
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2319
concurrency:
2420
group: "pages"
2521
cancel-in-progress: false
26-
2722
jobs:
2823
# Build job
2924
build:
3025
runs-on: ubuntu-latest
3126
steps:
3227
- name: Checkout
33-
uses: actions/checkout@v3
28+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
3429
- name: Detect package manager
3530
id: detect-package-manager
3631
run: |
@@ -49,20 +44,20 @@ jobs:
4944
exit 1
5045
fi
5146
- name: Setup Node
52-
uses: actions/setup-node@v3
47+
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
5348
with:
5449
node-version: "18.12.1"
5550
cache: ${{ steps.detect-package-manager.outputs.manager }}
5651
- name: Setup Pages
57-
uses: actions/configure-pages@v3
52+
uses: actions/configure-pages@b8130d9ab958b325bbde9786d62f2c97a9885a0e # v3
5853
with:
5954
# Automatically inject basePath in your Next.js configuration file and disable
6055
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
6156
#
6257
# You may remove this line if you want to manage the configuration yourself.
6358
static_site_generator: next
6459
- name: Restore cache
65-
uses: actions/cache@v3
60+
uses: actions/cache@734d9cb93d6f7610c2400b0f789eaa6f9813e271 # v3
6661
with:
6762
path: |
6863
.next/cache

0 commit comments

Comments
 (0)