File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,18 @@ jobs:
3030 env :
3131 DEPLOY_DIR : _site/
3232 DEPLOY_BRANCH : gh-pages
33+ NODE_VERSION : 20.x
3334 steps :
3435 - name : Checkout
35- uses : actions/checkout@v3
36+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3637 with :
3738 submodules : recursive
3839
40+ - name : Use Node.js ${{ env.NODE_VERSION }}
41+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
42+ with :
43+ node-version : ${{ env.NODE_VERSION }}
44+
3945 - name : Prepare deployment branch
4046 run : |
4147 mkdir "${DEPLOY_DIR}"
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export default function config(eleventyConfig) {
155155
156156 eleventyConfig . addAsyncShortcode ( 'attachment' , async ( ticketId , filename ) => {
157157 const content = await fs . promises . readFile (
158- path . join ( __dirname , ` raw-attachment/ticket/${ ticketId } `, filename )
158+ path . resolve ( `./ raw-attachment/ticket/${ ticketId } `, filename )
159159 )
160160 return content . toString ( )
161161 } )
You can’t perform that action at this time.
0 commit comments