Skip to content

Commit

Permalink
Merge pull request #29 from EliahKagan/node20
Browse files Browse the repository at this point in the history
Try to force Node version for old github-script action
  • Loading branch information
EliahKagan authored Mar 17, 2024
2 parents 6bd6e8b + 7cd59ee commit 85ae4d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/try-force-node20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Try to force Node 20

on: [push, pull_request, workflow_dispatch]

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: "true"

jobs:
show-node-version:
runs-on: ubuntu-latest

steps:
- uses: actions/github-script@v6 # Normally uses Node 16.
with:
script: |
console.log(`Node.js version: ${process.version}`);
console.log(`Tried forcing? ${process.env.FORCE_JAVASCRIPT_ACTIONS_TO_NODE20}`);

0 comments on commit 85ae4d6

Please sign in to comment.